@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #20236D; /* Official Hiperroll Dark Blue */
    --accent-red: #EC162B; /* Official Hiperroll Red */
    --vivid-blue: #0B57DA; /* Official Hiperroll Vivid Blue */
    --text-dark: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 35vh;
    background: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 3rem 2rem 5rem; /* Increased padding to prevent cutting */
}

.hero-logo {
    max-width: 200px; /* Reduced slightly to fit better */
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--white);
}

/* Main Container */
.container {
    max-width: 1100px;
    margin: -60px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Form Styling */
.registration-card {
    background: var(--white);
    border-radius: 15px;
    padding: 4rem 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Form Sections - MULTI-STEP LOGIC */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

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

/* Progress Bar & Steps */
.progress-container {
    margin-bottom: 4rem;
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.step-indicator {
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #94A3B8;
    z-index: 2;
    transition: var(--transition);
}

.step-indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 8px rgba(32, 35, 109, 0.05);
}

/* Form Section Title */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-red);
    width: 100%;
}

/* Form Layout (2 columns with labels) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 2rem;
}

.ie-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start; /* Ensure children don't stretch */
}

.ie-toggle {
    display: flex;
    align-items: center;
    gap: 2px; /* Very close as requested */
}

.ie-toggle input[type="checkbox"] {
    width: 13px;
    height: 13px;
    cursor: pointer;
    margin: 0;
}

.ie-toggle label {
    flex: none !important;
    font-size: 0.7rem !important;
    color: var(--text-light) !important;
    cursor: pointer;
    line-height: 1;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-group label {
    flex: 0 0 160px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #4A5568;
}

.form-group input, .form-group select, .form-group textarea {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #CBD5E0;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #F8FAFC;
}

.form-group.full-width {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
}

.form-group.full-width textarea, .form-group.full-width input {
    width: 100%;
}

.form-group.full-width label {
    flex: none;
    margin-bottom: 8px;
}

/* Modal */
.modal {
    display: none; /* HIDDEN BY DEFAULT */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Navigation Buttons */
.form-navigation {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-prev {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-prev:hover {
    background: rgba(32, 35, 109, 0.05);
}

.btn-nav.btn-next, .btn-submit {
    background: var(--primary);
    color: var(--white);
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-nav.btn-next:hover, .btn-submit:hover {
    background: var(--vivid-blue);
    transform: translateY(-2px);
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--accent-red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-group label {
        flex: none;
    }
}
