/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2C5282 0%, #2A4365 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.banner-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Info Notice */
.info-notice {
    background: #EBF8FF;
    border-left: 5px solid #3182CE;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
}

.info-notice p {
    margin-bottom: 8px;
    color: #2C5282;
    line-height: 1.6;
}

/* Step Container */
.step-container {
    display: none;
    padding: 30px;
}

.step-container.active {
    display: block;
}

.step-container h2 {
    color: #2D3748;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3182CE;
}

.step-container h3 {
    color: #2D3748;
    font-size: 20px;
    margin: 25px 0 15px 0;
}

.step-container h4 {
    color: #4A5568;
    font-size: 18px;
    margin: 20px 0 15px 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #2D3748;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182CE;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 12px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Current Info Card */
.current-info-card {
    background: #F7FAFC;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #E2E8F0;
}

.current-info-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2C5282;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #4A5568;
}

.info-value {
    color: #2D3748;
}

/* Update Options */
.update-options {
    margin: 30px 0;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-checkbox:hover {
    border-color: #3182CE;
    background: #F7FAFC;
}

.option-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    color: #2D3748;
    font-size: 16px;
    margin-bottom: 5px;
}

.option-description {
    color: #718096;
    font-size: 14px;
}

.option-price {
    font-weight: 700;
    color: #3182CE;
    font-size: 18px;
}

/* Accommodation Section */
.info-box {
    background: #FFF5E6;
    border-left: 5px solid #F59E0B;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.info-box p {
    margin-bottom: 10px;
    color: #92400E;
    font-weight: 600;
}

.info-box ul {
    margin-left: 20px;
    color: #92400E;
}

.info-box li {
    margin-bottom: 5px;
}

.accommodation-section {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.formula-card {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.formula-card:hover {
    border-color: #3182CE;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.1);
}

.formula-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.formula-card h4 {
    padding: 15px 20px 10px 20px;
    margin: 0;
    color: #2C5282;
}

.formula-card p {
    padding: 0 20px 15px 20px;
    color: #718096;
    font-size: 14px;
}

.price-options {
    padding: 15px 20px 20px 20px;
    background: #F7FAFC;
}

.price-options label {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-options label:hover {
    border-color: #3182CE;
    background: #EBF8FF;
}

.price-options input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Additional Options Section */
.additional-options-section {
    background: #FFFBEB;
    border: 2px solid #FCD34D;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.additional-options-section h3 {
    color: #92400E;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.option-card {
    background: white;
    border: 2px solid #FCD34D;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #F59E0B;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.option-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #F59E0B;
}

.option-header label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #92400E;
    margin: 0;
}

.option-header label span:first-child {
    font-size: 15px;
}

.option-header .option-price {
    font-size: 16px;
    font-weight: 700;
    color: #D97706;
}

.option-description {
    color: #92400E;
    font-size: 13px;
    margin-left: 32px;
    line-height: 1.5;
}

/* Dietary Section */
.dietary-section {
    background: #F7FAFC;
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
}

/* Room Partner Section */
.room-partner-section {
    background: #F7FAFC;
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
}

/* Transport Section */
.transport-section {
    margin-top: 30px;
    padding: 25px;
    background: #F7FAFC;
    border-radius: 12px;
}

.transport-group {
    margin-bottom: 25px;
}

.transport-group h5 {
    color: #2C5282;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E2E8F0;
}

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

/* Child Section */
.price-info {
    background: #EBF8FF;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.price-info .price {
    font-size: 20px;
    font-weight: 700;
    color: #2C5282;
}

/* Payment Summary */
.payment-summary {
    background: #F7FAFC;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.payment-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2C5282;
}

.payment-total-line {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 3px solid #2C5282;
    margin-top: 15px;
}

.payment-total {
    font-size: 28px;
    font-weight: 700;
    color: #2C5282;
}

.payment-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
}

.payment-detail-item:last-child {
    border-bottom: none;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 30px;
}

.payment-method-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-tab {
    flex: 1;
    padding: 15px 20px;
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-tab:hover {
    background: #EBF8FF;
    border-color: #3182CE;
}

.payment-tab.active {
    background: #3182CE;
    color: white;
    border-color: #3182CE;
}

.payment-form {
    display: none;
}

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

.payment-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2C5282;
}

.card-element-container {
    background: white;
    padding: 20px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
}

#card-element {
    padding: 12px;
}

#card-errors {
    color: #E53E3E;
    margin-top: 10px;
    font-size: 14px;
}

#paypal-button-container {
    min-height: 150px;
}

/* Payment Security */
.payment-security {
    background: #F0FFF4;
    border: 2px solid #9AE6B4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.security-icon {
    font-size: 32px;
}

.security-info strong {
    display: block;
    color: #22543D;
    margin-bottom: 5px;
}

.security-info p {
    color: #276749;
    font-size: 14px;
    margin: 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-submit {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3182CE;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2C5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-primary:disabled {
    background: #CBD5E0;
    cursor: not-allowed;
}

.btn-secondary {
    background: #E2E8F0;
    color: #2D3748;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.btn-submit {
    background: #38A169;
    color: white;
}

.btn-submit:hover:not(:disabled) {
    background: #2F855A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.btn-submit:disabled {
    background: #CBD5E0;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-info {
    background: #EBF8FF;
    color: #2C5282;
    border-left: 5px solid #3182CE;
}

.alert-error {
    background: #FFF5F5;
    color: #742A2A;
    border-left: 5px solid #E53E3E;
}

.alert-success {
    background: #F0FFF4;
    color: #22543D;
    border-left: 5px solid #38A169;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 24px;
    }

    .step-container {
        padding: 20px;
    }

    .step-container h2 {
        font-size: 20px;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .option-checkbox {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-method-tabs {
        flex-direction: column;
    }

    .payment-total {
        font-size: 24px;
    }

    .option-header label {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .option-header .option-price {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 14px;
    }

    .step-container h2 {
        font-size: 18px;
    }

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

    .additional-options-section {
        padding: 15px;
    }

    .option-card {
        padding: 12px;
    }
}