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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fix for mobile viewport height issues */
html {
    height: 100%;
}

/* Ensure proper mobile viewport handling */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific fixes */
    body {
        min-height: -webkit-fill-available;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 500px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    /* Mobile viewport fixes */
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* Form Container */
.form-container {
    padding: 30px 25px;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 80px;
    /* height: 60px; */
    /* border-radius: 50%; */
    margin-bottom: 15px;
}

.form-header h2 {
    font-size: 25px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 100px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background: #70167e;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #70167e;
    color: white;
}

.step.completed .step-number {
    background: #70167e;
    color: white;
}

.step-label {
    font-size: 11px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: #70167e;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title i {
    color: #e67e22;
    font-size: 18px;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

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

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #70167e;
    box-shadow: 0 0 0 3px rgba(112, 22, 126, 0.1);
}

.phone-input {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input:focus-within {
    border-color: #70167e;
    box-shadow: 0 0 0 3px rgba(112, 22, 126, 0.1);
}

.country-code {
    background: #f8f9fa;
    padding: 12px 15px;
    font-weight: 600;
    color: #666;
    border-right: 1px solid #e0e0e0;
}

.phone-input input {
    border: none;
    padding: 12px 15px;
    flex: 1;
}

.phone-input input:focus {
    box-shadow: none;
}

/* Selection Steps */
.selection-step {
    margin-bottom: 25px;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e67e22;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.selection-note {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

/* Buttons */
.next-btn,
.proceed-btn,
.submit-btn {
    width: 100%;
    padding: 15px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.next-btn:hover,
.proceed-btn:hover,
.submit-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.back-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.form-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.form-navigation .proceed-btn,
.form-navigation .submit-btn {
    flex: 1;
    margin-top: 0;
}

/* Payment Summary */
.payment-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    padding-top: 10px;
    border-top: 2px solid #e0e0e0;
}

/* Payment Methods */
.payment-methods h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #70167e;
    background: rgba(112, 22, 126, 0.05);
}

.payment-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.payment-option input[type="radio"]:checked + .payment-icon + span {
    color: #70167e;
    font-weight: 600;
}

.payment-option input[type="radio"]:checked {
    accent-color: #70167e;
}

.payment-icon {
    font-size: 18px;
    color: #666;
    width: 20px;
}

/* Success Modal */
.success-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 500px;
}

.success-icon {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.success-details {
    text-align: left;
    margin-bottom: 25px;
}

.success-details p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.registration-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.registration-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.important-note {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.important-note p {
    margin: 0;
    font-size: 14px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.success-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.success-btn.secondary {
    background: #70167e;
}

.success-btn.secondary:hover {
    background: #5a1166;
}

#displayRegistrationId {
    font-weight: bold;
    color: #70167e;
    font-family: monospace;
    font-size: 16px;
}

/* Modern No Center Message Styles */
.no-center-message {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-no-center-toast {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.2);
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.modern-no-center-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #ffc107, #ffeb3b);
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 20px 20px 15px;
    gap: 15px;
}

.toast-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.toast-title {
    flex: 1;
}

.toast-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #e65100;
    line-height: 1.2;
}

.toast-subtitle {
    font-size: 14px;
    color: #f57c00;
    font-weight: 500;
    opacity: 0.9;
}

.toast-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(229, 115, 115, 0.1);
    border-radius: 8px;
    color: #d32f2f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(229, 115, 115, 0.2);
    transform: scale(1.1);
}

.toast-body {
    padding: 0 20px 20px;
}

.toast-message {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #e65100;
}

.toast-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #e65100;
    border: 1px solid rgba(255, 193, 7, 0.3);
    transition: all 0.2s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.contact-item i {
    font-size: 16px;
    color: #ff9800;
}

.toast-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 175, 80, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
    font-size: 14px;
    color: #2e7d32;
    font-weight: 500;
}

.toast-note i {
    color: #4caf50;
    font-size: 16px;
}

/* Center dropdown styling for no-center option */
select option[value="no-center"] {
    background-color: #fff3cd !important;
    color: #856404 !important;
    font-weight: 600;
}

/* Responsive design for toast */
@media (max-width: 600px) {
    .toast-header {
        padding: 15px 15px 10px;
        gap: 12px;
    }

    .toast-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .toast-title h4 {
        font-size: 16px;
    }

    .toast-subtitle {
        font-size: 13px;
    }

    .toast-body {
        padding: 0 15px 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .contact-item {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    /* Fix mobile viewport height issues */
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    .modal {
        height: 100vh;
        height: -webkit-fill-available;
    }

    .modal-content {
        width: 98%;
        max-height: 95vh;
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 15px;
        /* Ensure content is scrollable */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-container {
        padding: 20px 15px;
        max-height: none;
        /* Remove fixed height to allow natural scrolling */
        overflow-y: auto;
    }

    .form-header h2 {
        font-size: 16px;
    }

    .form-subtitle {
        font-size: 11px;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
    }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .submit-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Help Text */
.form-help {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-warning {
    background: #ffc107;
    color: #212529;
}

.notification-info {
    background: #17a2b8;
}

/* Responsive notification */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
