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

:root {
    --primary-color: #D9534F;
    /* Orange/Red from DA */
    --secondary-color: #3C4255;
    /* Dark Charcoal/Navy from DA */
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #3C4255;
    --text-muted: #6C757D;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-box {
    background: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.important-note {
    background: rgba(217, 83, 79, 0.05);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    color: #856404;
    border: 1px solid #ffeeba;
}

.important-note p {
    margin-bottom: 0;
}

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EEE;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.step-indicator.active {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(217, 83, 79, 0.2);
}

.step-indicator.completed {
    background: var(--secondary-color);
    color: var(--white);
}

.step-line {
    flex: 1;
    height: 2px;
    background: #EEE;
    margin: 0 10px;
    position: relative;
    top: 0;
    z-index: 1;
}

.step-line.completed {
    background: var(--secondary-color);
}

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

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.btn-next,
.btn-prev {
    width: auto !important;
    padding: 12px 30px;
    text-transform: none;
}

.btn-prev {
    background: #EEE;
    color: var(--text-dark);
}

.btn-prev:hover {
    background: #DDD;
}

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

body {
    font-family: 'Biryani', sans-serif;
    background: #FFFFFF url('bg_pattern.png') repeat;
    background-size: 800px;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Header & Introduction */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2A3042 100%);
    color: var(--white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.hero-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
}

.hero h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Sections */
section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

section:hover {
    box-shadow: var(--shadow-md);
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #EEE;
    margin-left: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #EEE;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #FDFDFD;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

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

/* Custom Checkboxes / Radios */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #F9F9F9;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.checkbox-item:hover {
    background: #F0F0F0;
    border-color: #DDD;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Teaching Grid */
.teaching-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.teaching-table th,
.teaching-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #EEE;
}

.teaching-table th {
    background: #F8F9FA;
    font-weight: 700;
}

.teaching-table td label {
    margin: 0;
    cursor: pointer;
}

.teaching-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Floating Test Button */
.btn-test {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-test:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.4);
}

/* Experience Grid */
.experience-grid {
    overflow-x: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #C94340;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.3);
}

/* GDPR */
.gdpr {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.4;
}

/* ================================
   RESPONSIVE — Tablet & Mobile
   ================================ */

/* --- Tablet (max-width: 768px) --- */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 12px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 20px;
        border-radius: 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .hero-logo {
        padding: 10px 20px;
    }

    .hero-logo img {
        height: 45px;
    }

    section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .info-box {
        padding: 20px;
        margin-bottom: 30px;
    }

    .stepper {
        padding: 0 5px;
        margin-bottom: 30px;
    }

    .step-indicator {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .step-line {
        margin: 0 6px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .checkbox-item {
        padding: 14px 12px;
        font-size: 0.95rem;
    }

    .checkbox-item input[type="checkbox"],
    .checkbox-item input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .teaching-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .teaching-table th,
    .teaching-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .experience-grid {
        position: relative;
    }

    /* Scroll hint gradient for overflowing tables */
    .experience-grid::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
        pointer-events: none;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
    }

    .step-nav {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 25px;
    }

    .btn-next,
    .btn-prev,
    .btn-primary {
        width: 100% !important;
        padding: 14px 20px;
        text-align: center;
        font-size: 1rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 14px 24px;
    }

    .btn-test {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    textarea {
        min-height: 80px;
    }

    .gdpr {
        font-size: 0.8rem;
    }
}

/* --- Small Phone (max-width: 480px) --- */
@media (max-width: 480px) {
    .container {
        margin: 10px auto;
        padding: 8px;
    }

    .hero {
        padding: 30px 16px;
        border-radius: 8px;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .hero-logo {
        padding: 8px 16px;
        margin-bottom: 15px;
    }

    .hero-logo img {
        height: 36px;
    }

    .hero::before {
        width: 120px;
        height: 120px;
        top: -30px;
        right: -30px;
    }

    section {
        padding: 20px 16px;
        border-radius: 10px;
    }

    section h2 {
        font-size: 1.15rem;
        margin-bottom: 18px;
    }

    section h2::after {
        margin-left: 10px;
    }

    .info-box {
        padding: 16px;
        margin-bottom: 25px;
        border-left-width: 4px;
    }

    .info-box h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .important-note {
        padding: 12px;
        font-size: 0.85rem;
    }

    .stepper {
        padding: 0;
        margin-bottom: 20px;
        gap: 0;
    }

    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .step-indicator.active {
        box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.2);
    }

    .step-line {
        margin: 0 4px;
    }

    label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
        border-radius: 6px;
    }

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

    .checkbox-item {
        padding: 12px 10px;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    .checkbox-item input[type="checkbox"],
    .checkbox-item input[type="radio"] {
        margin-right: 10px;
    }

    .teaching-table th,
    .teaching-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .teaching-table input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .btn {
        font-size: 0.95rem;
        padding: 12px 20px;
        letter-spacing: 0.5px;
    }

    .step-nav {
        margin-top: 20px;
    }

    .btn-test {
        top: 8px;
        right: 8px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* --- Very Small Phone (max-width: 360px) --- */
@media (max-width: 360px) {
    .container {
        padding: 6px;
    }

    .hero {
        padding: 24px 12px;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-logo img {
        height: 30px;
    }

    section {
        padding: 16px 12px;
    }

    section h2 {
        font-size: 1.05rem;
    }

    .step-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .step-line {
        margin: 0 3px;
    }

    .checkbox-item {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 9px 10px;
        font-size: 0.9rem;
    }
}

/* --- Touch-friendly improvements for all mobile devices --- */
@media (hover: none) and (pointer: coarse) {
    .checkbox-item {
        min-height: 48px;
    }

    .checkbox-item input[type="checkbox"],
    .checkbox-item input[type="radio"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .btn {
        min-height: 48px;
    }

    .teaching-table input[type="checkbox"],
    .teaching-table input[type="radio"] {
        width: 22px;
        height: 22px;
    }

    .teaching-table th,
    .teaching-table td {
        padding: 12px 8px;
    }
}