/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
}

/* Hero Slider Card Styles - moved below container styles */

/* Swiper Container */
.swiper {
    width: 100%;
    height: 60vh;
    max-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slide-image:hover {
    transform: scale(1.05);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff !important;
    background: #10b981;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(5, 150, 105, 0.9) !important;
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #10b981 !important;
    transform: scale(1.2);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Hero Slider Card Styles */
.hero-slider-card {
    width: 100%;
    margin-bottom: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.logo {
    margin-bottom: 20px;
}

.logo-icon {
    display: inline-block;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 2px;
}

.organizer-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
    line-height: 1.4;
}

.organizer-info p {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
}

/* Event Info Styles */
.event-info {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
}

.event-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-title h2 {
    font-size: 20px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 15px;
}

.event-year {
    display: inline-block;
    background: #059669;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 25px;
}

.event-details {
    display: grid;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detail-item .label {
    font-weight: 600;
    color: #374151;
}

.detail-item .value {
    font-weight: 500;
    color: #059669;
}

.detail-item .value-chinese {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 2px;
    font-style: italic;
    text-align: right;
}

@media (max-width: 768px) {
    .detail-item .value-chinese {
        text-align: left;
    }
}

.detail-item.price-item {
    align-items: flex-start;
}

.price-display-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.price-original {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: line-through;
}

.price-discounted {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
}

/* Form Styles */
.registration-form {
    margin-bottom: 40px;
}

.registration-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d5db;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input:invalid {
    border-color: #ef4444;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

/* Contact Info */
.contact-info {
    text-align: center;
    padding: 30px;
    background: #f1f5f9;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 16px;
    color: #4b5563;
}

.disclaimer {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider-card {
        padding: 15px;
        margin-bottom: 30px;
    }

    .swiper {
        height: 50vh;
        max-height: 400px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px !important;
    }

    .quantity-input {
        gap: 30px;
        justify-content: center;
    }

    .quantity-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        min-width: 50px;
        min-height: 50px;
    }

    .quantity-display {
        font-size: 22px;
        min-width: 80px;
    }

    .swiper-pagination-bullet {
        width: 10px !important;
        height: 10px !important;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    .event-title h1 {
        font-size: 24px;
    }

    .event-title h2 {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Ensure all form sections are responsive */
    .form-section .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .price-display-inline {
        gap: 8px;
    }

    .price-original {
        font-size: 14px;
    }

    .price-discounted {
        font-size: 18px;
    }

    .calculation-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .calc-value {
        font-size: 18px;
    }

    .total-amount {
        font-size: 22px;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .detail-item.price-item {
        align-items: flex-start;
    }

    .price-display-inline {
        justify-content: flex-start;
        margin-top: 5px;
    }

    .detail-item .label {
        font-size: 14px;
    }

    .detail-item .value {
        font-size: 14px;
        text-align: left !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .detail-item .value .price-original {
        display: block;
    }

    .submit-btn {
        width: 100%;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .hero-slider-card {
        padding: 10px;
        margin-bottom: 20px;
    }

    .swiper {
        height: 45vh;
        max-height: 350px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px !important;
    }

    .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
    }

    .event-title h1 {
        font-size: 20px;
    }

    .event-title h2 {
        font-size: 16px;
    }

    .price-original {
        font-size: 12px;
    }

    .price-discounted {
        font-size: 16px;
    }

    .calc-value {
        font-size: 16px;
    }

    .total-amount {
        font-size: 20px;
    }

    .savings-text {
        font-size: 14px;
    }

    .quantity-input {
        gap: 40px;
        justify-content: center;
    }

    .quantity-btn {
        width: 55px;
        height: 55px;
        font-size: 26px;
        min-width: 55px;
        min-height: 55px;
    }

    .quantity-display {
        font-size: 24px;
        min-width: 90px;
    }

    .modal-content {
        width: 98%;
        padding: 10px;
    }

    .modal-close {
        top: 5px;
        right: 10px;
        font-size: 25px;
    }

    .modal-image {
        max-height: 60vh;
    }

    .modal-caption {
        font-size: 14px;
        margin-top: 10px;
    }

    .modal-close {
        top: 5px;
        right: 15px;
        font-size: 30px;
    }

    .modal-image {
        max-height: 70vh;
    }

    .modal-caption {
        font-size: 16px;
        margin-top: 15px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .organizer-info h2 {
        font-size: 16px;
    }

    .organizer-info p {
        font-size: 14px;
    }

    .price-selection-section {
        padding: 20px 15px;
    }

    .price-option-label {
        padding: 15px;
    }

    .price-option-name {
        font-size: 16px;
    }

    .price-option-price {
        font-size: 20px;
    }
}


/* Quantity and Attendee Styles */
.quantity-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Price Selection Styles */
.price-selection-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.price-selection-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1d5db;
}

.price-options {
    display: grid;
    gap: 15px;
}

.price-option {
    position: relative;
}

.price-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.price-option-label {
    display: block;
    padding: 20px;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-option-label:hover {
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.price-radio:checked + .price-option-label {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.price-option-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.price-option-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.price-option-name-zh {
    font-size: 16px;
    color: #64748b;
    margin-left: 8px;
}

.price-option-price {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 8px;
}

.price-option-note {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 8px;
}

.price-option-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-top: 8px;
}

/* Price Calculator Styles */
.price-calculator {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    border: 1px solid #f59e0b;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.calculation-row:last-child {
    border-bottom: none;
}

.total-row {
    border-top: 2px solid #f59e0b;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    font-weight: 600;
}

.calc-label {
    font-weight: 500;
    color: #374151;
    font-size: 16px;
}

.calc-value {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.savings-display {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.savings-text {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

/* Modal Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #10b981;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-image:hover {
    transform: scale(1.02);
}

.modal-caption {
    margin-top: 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}


.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .quantity-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .quantity-input {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
}

.quantity-selector label {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-btn {
    background: #10b981;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    min-width: 40px;
    min-height: 40px;
}

.quantity-btn:hover {
    background: #059669;
}

.quantity-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.attendee-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.copy-checkbox-container {
    margin-bottom: 15px;
}

.copy-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.copy-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkmark {
    margin-left: 4px;
}

input[readonly] {
    background-color: #f3f4f6 !important;
    cursor: not-allowed !important;
}

.attendee-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.attendee-number {
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.attendee-form {
    display: none;
}

.attendee-form.active {
    display: block;
}

.attendee-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive form layout for attendee forms */
@media (max-width: 768px) {
    .attendee-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Make all form fields full width on mobile */
    .attendee-form .form-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .attendee-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .attendee-form .form-group {
        margin-bottom: 15px;
    }

    .attendee-form .form-group input,
    .attendee-form .form-group select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

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

.attendee-form .form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.attendee-form .form-group input,
.attendee-form .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white;
}

.attendee-form .form-group input:focus,
.attendee-form .form-group select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading and Success States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #a7f3d0;
    text-align: center;
    font-weight: 500;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fca5a5;
    text-align: center;
    font-weight: 500;
}

/* SweetAlert2 Custom Styles */
.swal2-popup-custom {
    font-family: 'Inter', sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.swal2-title-custom {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 20px !important;
}

.swal2-content-custom {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.swal2-confirm {
    background-color: #10b981 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
    background-color: #059669 !important;
    transform: translateY(-1px) !important;
}

.swal2-success {
    border-color: #10b981 !important;
}

.swal2-success-ring {
    border-color: #10b981 !important;
}

.swal2-success-line-tip,
.swal2-success-line-long {
    background-color: #10b981 !important;
}

/* Discount Code Styles */
.discount-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.discount-section h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.discount-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.discount-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.discount-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.apply-discount-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.apply-discount-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.apply-discount-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.discount-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}

.discount-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.discount-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.discount-amount {
    color: #dc2626;
    font-weight: 600;
    text-align: right;
}

/* Responsive design for discount section */
@media (max-width: 768px) {
    .discount-input-group {
        flex-direction: column;
    }

    .apply-discount-btn {
        width: 100%;
    }
}
