/* CNY Event Registration - Frontend Styles */
/* Theme: CNY 2026 with #009CE3 primary color */

.cny-event-form-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.cny-event-form-wrapper *,
.cny-event-form-wrapper *:before,
.cny-event-form-wrapper *:after {
    box-sizing: border-box;
}

/* Banner Section */
.cny-banner-section {
    width: 100%;
    overflow: hidden;
    border-radius: 12px !important;
}

.cny-banner-mobile,
.cny-banner-desktop {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px !important;
    object-fit: cover;
}

/* Mobile banner shows by default */
.cny-banner-mobile {
    display: block !important;
}

/* Desktop banner hidden by default */
.cny-banner-desktop {
    display: none !important;
}

/* Show desktop banner on larger screens, hide mobile */
@media (min-width: 768px) {
    .cny-banner-mobile {
        display: none !important;
    }
    .cny-banner-desktop {
        display: block !important;
    }
}


.cny-event-container {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

/* Form Styles */
.cny-form {
    padding: 30px;
}
.cny-form-section {
    margin-bottom: 32px;
}

.cny-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #009CE3;
}

.cny-form-group {
    margin-bottom: 20px;
}

.cny-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
}

.cny-required {
    color: #009CE3;
    margin-left: 2px;
}

.cny-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s;
}

.cny-input:focus {
    outline: none;
    border-color: #009CE3;
    box-shadow: 0 0 0 3px rgba(126, 0, 1, 0.1);
}

.cny-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

/* Radio Groups */
.cny-radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cny-radio-card {
    flex: 1;
    min-width: 80px;
    position: relative;
    cursor: pointer;
}

.cny-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cny-radio-content {
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
}

.cny-radio-card input[type="radio"]:checked + .cny-radio-content {
    border-color: #009CE3;
    background: #fef2f2;
}

.cny-radio-card:hover .cny-radio-content {
    border-color: #009CE3;
}

.cny-radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

/* Option Cards (Pass Type) */
.cny-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.cny-option-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.cny-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cny-option-content {
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.cny-option-card input[type="radio"]:checked + .cny-option-content {
    border-color: #009CE3;
    background: #fef2f2;
    box-shadow: 0 4px 6px rgba(126, 0, 1, 0.1);
}

.cny-option-card:hover .cny-option-content {
    border-color: #009CE3;
}

.cny-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cny-option-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.cny-option-price {
    font-size: 18px;
    font-weight: 700;
    color: #009CE3;
}

.cny-option-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Treatment Cards */
.cny-treatment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cny-treatment-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.cny-treatment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cny-treatment-content {
    padding: 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
    height: 100%;
}

.cny-treatment-card input[type="radio"]:checked + .cny-treatment-content {
    border-color: #009CE3;
    background: #fef2f2;
    box-shadow: 0 10px 15px rgba(126, 0, 1, 0.1);
}

.cny-treatment-card:hover .cny-treatment-content {
    border-color: #009CE3;
    transform: translateY(-2px);
}

.cny-treatment-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #009CE3;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
}

.cny-treatment-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 8px 0;
}

.cny-treatment-value {
    font-size: 14px;
    color: #009CE3;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.cny-treatment-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cny-treatment-features li {
    font-size: 14px;
    color: #000000;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cny-treatment-features li:last-child {
    border-bottom: none;
}

/* Info Boxes */
.cny-info-box {
    background: #fef9e7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.cny-info-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px 0;
}

.cny-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cny-info-list li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: #000000;
    font-size: 14px;
}

.cny-info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #009CE3;
    font-weight: bold;
}

/* Alert Box */
.cny-alert-box {
    background: #fef2f2;
    border-left: 4px solid #009CE3;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.cny-alert-title {
    font-size: 16px;
    font-weight: 600;
    color: #009CE3;
    margin: 0 0 12px 0;
}

.cny-alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cny-alert-list li {
    padding: 6px 0;
    color: #000000;
    font-size: 14px;
}

/* Submit Button */
.cny-form-actions {
    margin-top: 32px;
}

.cny-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #009CE3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cny-submit-btn:hover {
    background: #0078b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(126, 0, 1, 0.2);
}

.cny-submit-btn:active {
    transform: translateY(0);
}

.cny-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.cny-btn-text {
    flex: 1;
    text-align: center;
}

.cny-btn-icon {
    transition: transform 0.2s;
}

.cny-submit-btn:hover .cny-btn-icon {
    transform: translateX(4px);
}

/* Response Messages */
.cny-response-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.cny-response-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.cny-response-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Next Steps */
.cny-next-steps {
    background: #f9fafb;
    padding: 24px 30px;
    border-top: 1px solid #e5e7eb;
}

.cny-next-steps-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 12px 0;
}

.cny-next-steps p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.cny-next-steps ul {
    margin: 12px 0;
    padding-left: 20px;
    list-style: none;
}

.cny-next-steps ul li {
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    padding-left: 0;
}

.cny-next-steps ul li strong {
    color: #1f2937;
    font-weight: 600;
}

/* Loading State */
.cny-loading .cny-btn-text {
    display: none;
}

.cny-loading:after {
    content: "Processing...";
}

/* Responsive */
@media (max-width: 768px) {
    .cny-event-title {
        font-size: 24px;
    }
    
    .cny-event-meta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .cny-form {
        padding: 20px;
    }
    
    .cny-radio-group {
        flex-direction: column;
    }
    
    .cny-radio-card {
        min-width: 100%;
    }
    
    .cny-option-cards,
    .cny-treatment-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cny-event-form-wrapper {
        padding: 0 10px;
    }
    
    .cny-event-header {
        padding: 30px 20px;
    }
    
    .cny-form {
        padding: 16px;
    }
    
    .cny-next-steps {
        padding: 20px 16px;
    }
}

/* T&C Checkbox Section */
.cny-tnc-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #009CE3;
    border-radius: 8px;
}

.cny-tnc-box {
    display: flex;
    align-items: flex-start;
}

.cny-tnc-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.6;
}

.cny-tnc-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #009CE3;
}

.cny-tnc-text {
    flex: 1;
    color: #000000;
}

.cny-tnc-link {
    color: #009CE3;
    text-decoration: underline;
    font-weight: 600;
}

.cny-tnc-link:hover {
    color: #0078b3;
}

/* Card top images — natural aspect ratio, no cropping */
.cny-card-image {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.cny-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Make card a flex column so image sits flush at top, content below */
.cny-treatment-swatch {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 3px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Remove top padding on content when image is present */
.cny-treatment-swatch:has(.cny-card-image) .cny-swatch-content,
.cny-special-offer:has(.cny-card-image) .cny-swatch-content {
    padding-top: 16px;
}

/* Treatment Swatches — mobile: single column, tablet+: 2 columns, desktop: strict 4 columns */
.cny-treatment-swatches {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .cny-treatment-swatches {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .cny-treatment-swatches {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
}

.cny-treatment-swatch:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 156, 227, 0.15);
    border-color: #009CE3;
}

.cny-treatment-swatch input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content {
    background: linear-gradient(135deg, #009CE3 0%, #0077b3 100%);
    color: #ffffff;
}

.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content .cny-swatch-title,
.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content .cny-swatch-price,
.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content .cny-swatch-features {
    color: #ffffff;
}

.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content .cny-swatch-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content::before {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #009CE3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cny-swatch-content {
    padding: 28px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.cny-swatch-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #e0f2fe;
    color: #0077b3;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid #bae6fd;
    transition: all 0.3s ease;
}

.cny-swatch-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 12px 0;
    transition: color 0.3s ease;
}

.cny-swatch-price {
    font-size: 32px;
    font-weight: 800;
    color: #009CE3;
    margin: 8px 0 16px 0;
    transition: color 0.3s ease;
}

.cny-price-original {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.cny-swatch-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.cny-swatch-features li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.cny-swatch-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    background: #e0f2fe;
    color: #0077b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content .cny-swatch-features li::before {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content .cny-swatch-features li {
    color: rgba(255, 255, 255, 0.95);
}

/* Premium "Both" Swatch */
.cny-swatch-premium {
    position: relative;
    border-color: #fbbf24;
}

.cny-swatch-premium::after {
    content: 'POPULAR';
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    z-index: 1;
}

.cny-swatch-premium:hover {
    border-color: #fbbf24;
    box-shadow: 0 12px 24px rgba(251, 191, 36, 0.25);
}

.cny-badge-premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #fbbf24;
}

.cny-treatment-swatch.cny-swatch-premium input[type="radio"]:checked ~ .cny-swatch-content {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.cny-swatch-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 8px 0 0 0;
    font-style: italic;
    transition: color 0.3s ease;
}

.cny-treatment-swatch input[type="radio"]:checked ~ .cny-swatch-content .cny-swatch-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 599px) {
    .cny-treatment-swatches {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cny-swatch-content {
        padding: 24px 20px;
    }
    
    .cny-swatch-title {
        font-size: 20px;
    }
    
    .cny-swatch-price {
        font-size: 28px;
    }
}

/* Payment Method Selection */
.cny-payment-selection {
    margin-top: 24px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.cny-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.cny-payment-option {
    position: relative;
}

.cny-payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.cny-payment-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    color: #374151;
    min-height: 56px;
}

.cny-payment-label:hover {
    border-color: #009CE3;
    background: #f0f9ff;
}

.cny-payment-option input[type="radio"]:checked + .cny-payment-label {
    border-color: #009CE3;
    background: #009CE3;
    color: #ffffff;
}

.cny-payment-info {
    margin-top: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cny-payment-info-item {
    padding: 10px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.cny-payment-info-item:first-child {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.cny-payment-info-item strong {
    color: #1f2937;
    font-weight: 600;
}

@media (max-width: 640px) {
    .cny-payment-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* Google Maps Button */
.cny-maps-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.cny-maps-btn:active {
    transform: translateY(0);
}

