@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {

    --primary: #990000;
    --primary-dark: #7a0000;

    --bg: #f6f7fb;

    --card: rgba(255,255,255,0.82);

    --text: #1f2937;

    --muted: #6b7280;

    --border: rgba(255,255,255,0.45);

    --shadow:
        0 10px 30px rgba(0,0,0,0.06);

}

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {

    font-family: 'Poppins', sans-serif;

    background:
        radial-gradient(circle at top left,
        rgba(153,0,0,0.05),
        transparent 30%),

        radial-gradient(circle at bottom right,
        rgba(153,0,0,0.04),
        transparent 30%),

        var(--bg);

    min-height: 100vh;

    color: var(--text);

    padding: 40px 20px;

}

/* MAIN WRAPPER */

.container {

    max-width: 1200px;
    margin: auto;

}

/* GLASS CARD */

.main-card {

    background: var(--card);

    backdrop-filter: blur(14px);

    border: 1px solid var(--border);

    border-radius: 32px;

    padding: 50px;

    box-shadow: var(--shadow);

    position: relative;

    overflow: hidden;

}

/* TOP ACCENT */

.main-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 6px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            #d62828
        );

}

/* HEADER */

.main-title {

    font-size: 42px;

    font-weight: 700;

    color: var(--primary);

    margin-bottom: 10px;

    letter-spacing: -1px;

}

.subtitle {

    color: var(--muted);

    font-size: 16px;

    font-weight: 500;

}

/* LABEL */

.form-label {

    font-size: 14px;

    font-weight: 600;

    color: #374151;

    margin-bottom: 10px;

    display: block;

}

/* SELECT */

.form-select {

    width: 100%;

    border: none;

    border-radius: 18px;

    background: white;

    padding: 16px 18px;

    font-size: 15px;

    font-weight: 500;

    color: #111827;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.04);

    transition: 0.25s ease;

}

.form-select:focus {

    outline: none;

    box-shadow:
        0 0 0 4px rgba(153,0,0,0.08);

}

/* SUBJECT CARD */

.preference-card {

    margin-top: 35px;

    background: rgba(255,255,255,0.7);

    border-radius: 28px;

    padding: 35px;

    border: 1px solid rgba(255,255,255,0.4);

    box-shadow:
        0 8px 24px rgba(0,0,0,0.04);

}

/* SECTION TITLE */

.preference-title {

    font-size: 30px;

    font-weight: 700;

    color: var(--primary);

    margin-bottom: 30px;

}

/* SUBJECT GROUP */

.subject-group {

    margin-bottom: 35px;

}

/* GROUP HEADING */

.group-heading {

    font-size: 17px;

    font-weight: 700;

    color: #111827;

    margin-bottom: 18px;

    padding-left: 14px;

    border-left: 4px solid var(--primary);

}

/* SUBJECT TILE */

.custom-check {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 16px 18px;

    border-radius: 18px;

    background: rgba(255,255,255,0.85);

    margin-bottom: 14px;

    transition: all 0.25s ease;

    border: 1px solid transparent;

    cursor: pointer;

}

.custom-check:hover {

    transform: translateY(-2px);

    border-color: rgba(153,0,0,0.15);

    background: white;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.04);

}

/* CHECKBOX */

.form-check-input {

    width: 20px;

    height: 20px;

    accent-color: var(--primary);

    margin-top: 2px;

    flex-shrink: 0;

    cursor: pointer;

}

/* LABEL */

.form-check-label {

    width: 100%;

    cursor: pointer;

    font-size: 15px;

    line-height: 1.6;

    color: #1f2937;

}

.form-check-label strong {

    font-weight: 700;

    color: #111827;

}

/* HOURS */

.hours {

    font-size: 13px;

    color: var(--muted);

    margin-left: 4px;

}

/* BUTTON */

.submit-btn {

    margin-top: 40px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    border: none;

    border-radius: 18px;

    padding: 16px 42px;

    font-size: 15px;

    font-weight: 600;

    letter-spacing: 0.3px;

    transition: 0.3s ease;

    box-shadow:
        0 10px 24px rgba(153,0,0,0.18);

}

.submit-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(153,0,0,0.22);

}

/* DESKTOP SPACING */

@media (min-width: 1200px) {

    .subject-group {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 16px;

    }

    .group-heading {

        grid-column: 1 / -1;

    }

}

/* TABLET */

@media (max-width: 992px) {

    .main-card {

        padding: 35px;

    }

    .main-title {

        font-size: 34px;

    }

}

/* MOBILE */

@media (max-width: 768px) {

    body {

        padding: 15px;

    }

    .main-card {

        padding: 22px;

        border-radius: 24px;

    }

    .main-title {

        font-size: 28px;

        line-height: 1.3;

    }

    .subtitle {

        font-size: 14px;

    }

    .preference-card {

        padding: 20px;

        border-radius: 22px;

    }

    .preference-title {

        font-size: 24px;

    }

    .group-heading {

        font-size: 15px;

        margin-bottom: 14px;

    }

    .custom-check {

        padding: 14px;

        border-radius: 16px;

    }

    .form-check-label {

        font-size: 14px;

    }

    .submit-btn {

        width: 100%;

        padding: 16px;

    }

}

.sticky-counter{

    position: sticky;

    top: 0;

    z-index: 999;

    background: white;

    padding-top: 10px;

}

/* SMALL MOBILE */

@media (max-width: 480px) {

    .main-title {

        font-size: 24px;

    }

    .preference-title {

        font-size: 21px;

    }

    .form-check-label {

        font-size: 13px;

    }

}