/* Registration Page Styles */

/* CSS Custom Properties */
:root {
    --saffron: #FF9933;
    --green: #138808;
    --royal-blue: #003399;
    --text-dark: #2c3e50;
}

.register-hero {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--green) 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.register-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.register-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.register-hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.registration-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: white;
    color: var(--saffron);
    border-color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.register-form-section {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.registration-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
}

.form-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--saffron) 0%, var(--green) 100%);
    border-radius: 4px;
    width: 33.33%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.registration-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

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

.form-step h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--saffron);
    font-weight: 500;
}

.form-group select + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--saffron);
    font-weight: 500;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
    min-height: 1.2rem;
}

.member-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.member-card:hover {
    border-color: var(--saffron);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.1);
}

.member-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-card h3 i {
    color: var(--saffron);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-width: 140px;
    justify-content: center;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--green) 100%);
    color: white;
    position: relative;
    z-index: 10;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, var(--green) 0%, var(--royal-blue) 100%);
}

.confirmation-summary {
    margin-bottom: 2rem;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e9ecef;
}

.summary-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-card h3 i {
    color: var(--saffron);
}

.team-summary-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--saffron);
}

.team-summary-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-summary-item p {
    margin: 0.25rem 0;
    color: #6c757d;
}

.terms-agreement {
    margin: 2rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--saffron);
    border-color: var(--saffron);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-container a {
    color: var(--saffron);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--green) 0%, var(--royal-blue) 100%);
    color: white;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #6c757d;
}

.registration-id {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-family: 'Inter', monospace;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal:hover {
    background: #f8f9fa;
}

.btn-modal.primary {
    background: var(--saffron);
    border-color: var(--saffron);
    color: white;
}

.btn-modal.primary:hover {
    background: #e68a00;
    border-color: #e68a00;
}

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

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

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

/* Loading states */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .register-hero {
        padding: 100px 0 60px;
    }

    .register-hero h1 {
        font-size: 2.5rem;
    }

    .registration-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        max-width: 200px;
    }

    .step-line {
        display: none;
    }

    .registration-container {
        margin: 1rem;
        padding: 2rem;
    }

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

    .form-group.full-width {
        grid-column: 1;
    }

    .member-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        min-width: auto;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .register-hero h1 {
        font-size: 2rem;
    }

    .register-hero p {
        font-size: 1rem;
    }

    .registration-container {
        padding: 1.5rem;
    }

    .form-step h2 {
        font-size: 1.5rem;
    }

    .member-card h3 {
        font-size: 1.1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Registration disabled overlay */
.registration-disabled-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.registration-disabled-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.registration-disabled-content i {
    font-size: 4rem;
    color: var(--saffron);
    margin-bottom: 1.5rem;
}

.registration-disabled-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.registration-disabled-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.go-back-btn {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--green) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.go-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 153, 51, 0.3);
}
