
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
    --eng-surface:       #13161e;
    --eng-surface-2:     #1a1e2a;
    --eng-border:        #252a38;
    --eng-border-hover:  #3b4260;
    --eng-accent:        #4f8ef7;
    --eng-accent-glow:   rgba(79,142,247,.15);
    --eng-text-primary:  #e8ecf5;
    --eng-text-secondary:#7a8499;
    --eng-text-muted:    #4d566b;
    --eng-radius:        14px;
    --eng-radius-sm:     8px;
}

/* ── Animation ── */
@keyframes engFadeUp {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── Section options (hidden by default, animated on show) ── */
.section-options {
    display: none;
    padding-left: 4px;
    animation: engFadeUp .3s ease;
}
.form-check-label { cursor: pointer; }

/* ── Wrappers ── */
#engineeringSections,
#managementSections {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Sora', sans-serif;
}

/* ── Cards ── */
#engineeringSections .section-card,
#managementSections .section-card { animation: engFadeUp .3s ease both; }

#engineeringSections .section-card .card,
#managementSections .section-card .card {
    background: var(--eng-surface) !important;
    border: 1px solid var(--eng-border) !important;
    border-radius: var(--eng-radius) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.3) !important;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
#engineeringSections .section-card .card:hover,
#managementSections .section-card .card:hover {
    border-color: var(--eng-border-hover) !important;
    box-shadow: 0 4px 32px rgba(0,0,0,.4) !important;
}
#engineeringSections .section-card .card-body,
#managementSections .section-card .card-body { padding: 24px 28px !important; }

/* ── Title row ── */
#engineeringSections .form-check.mb-3,
#managementSections .form-check.mb-3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px !important;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eng-border);
}
#engineeringSections .form-check.mb-3 .form-check-label.fw-semibold,
#managementSections .form-check.mb-3 .form-check-label.fw-semibold {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: var(--eng-text-primary) !important;
    letter-spacing: -.2px;
    margin-bottom: 0;
}

/* ── Checkboxes & radios ── */
#engineeringSections .form-check-input,
#managementSections .form-check-input {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    background-color: var(--eng-surface-2) !important;
    border: 1.5px solid var(--eng-border-hover) !important;
    border-radius: 5px !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .15s;
    appearance: none;
    -webkit-appearance: none;
    margin-top: 0 !important;
}
#engineeringSections .form-check-input[type="radio"],
#managementSections .form-check-input[type="radio"] { border-radius: 50% !important; }

#engineeringSections .form-check-input:checked,
#managementSections .form-check-input:checked {
    background-color: var(--eng-accent) !important;
    border-color: var(--eng-accent) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E") !important;
    background-size: 11px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}
#engineeringSections .form-check-input[type="radio"]:checked,
#managementSections .form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle fill='white' cx='8' cy='8' r='4'/%3E%3C/svg%3E") !important;
}
#engineeringSections .form-check-input:focus,
#managementSections .form-check-input:focus {
    box-shadow: 0 0 0 3px var(--eng-accent-glow) !important;
    outline: none !important;
}

/* ── Sub-group headings ── */
#engineeringSections .section-options h6,
#managementSections .section-options h6 {
    font-family: 'DM Mono', monospace !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff2f20 !important;
    padding: 14px 0 4px;
}

/* ── Option rows ── */
#engineeringSections .section-options > .form-check,
#managementSections .section-options > .form-check {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 7px 12px;
    margin: 0 -12px;
    border-radius: var(--eng-radius-sm);
    transition: background .15s;
    cursor: pointer;
}
#engineeringSections .section-options > .form-check:hover,
#managementSections .section-options > .form-check:hover { background: var(--eng-surface-2); }

/* ── Option labels ── */
#engineeringSections .section-options .form-check-label,
#managementSections .section-options .form-check-label {
    font-size: 13.5px;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .15s;
    margin-bottom: 0;
}
#engineeringSections .section-options > .form-check:hover .form-check-label,
#managementSections .section-options > .form-check:hover .form-check-label { color: var(--eng-text-primary); }

/* ── All form-control inputs: shared base ── */
#engineeringSections .section-options .form-control.upskill-input,
#engineeringSections .section-options .form-control.cert-input,
#engineeringSections .section-options .form-control.mini-input,
#engineeringSections .section-options .form-control.major-input,
#engineeringSections .section-options .form-control.hack-input,
#engineeringSections .section-options .form-control.intern-input,
#engineeringSections .section-options .form-control.research-input,
#engineeringSections .section-options .form-control.extra-input,
#engineeringSections .section-options .form-control.industry-input,
#engineeringSections .skill-input .form-control,
#engineeringSections .degree-fields .form-control,
#engineeringSections .cgpa-fields .form-control,
#engineeringSections .core-fields .form-control,
#managementSections .section-options .form-check > input[type="text"].form-control,
#managementSections .mgmt-curricular-input .form-control,
#managementSections .mgmt-intern-input .form-control,
#managementSections .mgmt-capstone-input .form-control,
#managementSections .mgmt-competitions-input .form-control,
#managementSections .mgmt-extra-input .form-control,
#managementSections .mgmt-personal-brand-input .form-control,
#managementSections .bba-fields .form-control {
    background: #ffffff !important;
    border: 1px solid var(--eng-border) !important;
    border-radius: var(--eng-radius-sm) !important;
    /* color: var(--eng-text-primary) !important; */
    font-family: 'Sora', sans-serif !important;
    font-size: 13px !important;
    transition: border-color .15s, box-shadow .15s;
}
/* placeholder */
#engineeringSections .section-options .form-control.upskill-input::placeholder,
#engineeringSections .section-options .form-control.cert-input::placeholder,
#engineeringSections .section-options .form-control.mini-input::placeholder,
#engineeringSections .section-options .form-control.major-input::placeholder,
#engineeringSections .section-options .form-control.hack-input::placeholder,
#engineeringSections .section-options .form-control.intern-input::placeholder,
#engineeringSections .section-options .form-control.research-input::placeholder,
#engineeringSections .section-options .form-control.extra-input::placeholder,
#engineeringSections .section-options .form-control.industry-input::placeholder,
#engineeringSections .skill-input .form-control::placeholder,
#engineeringSections .degree-fields .form-control::placeholder,
#engineeringSections .cgpa-fields .form-control::placeholder,
#engineeringSections .core-fields .form-control::placeholder,
#managementSections .section-options .form-check > input[type="text"].form-control::placeholder,
#managementSections .mgmt-curricular-input .form-control::placeholder,
#managementSections .mgmt-intern-input .form-control::placeholder,
#managementSections .mgmt-capstone-input .form-control::placeholder,
#managementSections .mgmt-competitions-input .form-control::placeholder,
#managementSections .mgmt-extra-input .form-control::placeholder,
#managementSections .mgmt-personal-brand-input .form-control::placeholder,
#managementSections .bba-fields .form-control::placeholder { color: var(--eng-text-muted) !important; }
/* focus */
#engineeringSections .section-options .form-control.upskill-input:focus,
#engineeringSections .section-options .form-control.cert-input:focus,
#engineeringSections .section-options .form-control.mini-input:focus,
#engineeringSections .section-options .form-control.major-input:focus,
#engineeringSections .section-options .form-control.hack-input:focus,
#engineeringSections .section-options .form-control.intern-input:focus,
#engineeringSections .section-options .form-control.research-input:focus,
#engineeringSections .section-options .form-control.extra-input:focus,
#engineeringSections .section-options .form-control.industry-input:focus,
#engineeringSections .skill-input .form-control:focus,
#engineeringSections .degree-fields .form-control:focus,
#engineeringSections .cgpa-fields .form-control:focus,
#engineeringSections .core-fields .form-control:focus,
#managementSections .section-options .form-check > input[type="text"].form-control:focus,
#managementSections .mgmt-curricular-input .form-control:focus,
#managementSections .mgmt-intern-input .form-control:focus,
#managementSections .mgmt-capstone-input .form-control:focus,
#managementSections .mgmt-competitions-input .form-control:focus,
#managementSections .mgmt-extra-input .form-control:focus,
#managementSections .mgmt-personal-brand-input .form-control:focus,
#managementSections .bba-fields .form-control:focus {
    outline: none !important;
    border-color: var(--eng-accent) !important;
    box-shadow: 0 0 0 3px var(--eng-accent-glow) !important;
    background: var(--eng-surface-2) !important;
    color: var(--eng-text-primary) !important;
}

/* ── Inline inputs only: flex + height ── */
#engineeringSections .section-options .form-control.upskill-input,
#engineeringSections .section-options .form-control.cert-input,
#engineeringSections .section-options .form-control.mini-input,
#engineeringSections .section-options .form-control.major-input,
#engineeringSections .section-options .form-control.hack-input,
#engineeringSections .section-options .form-control.intern-input,
#engineeringSections .section-options .form-control.research-input,
#engineeringSections .section-options .form-control.extra-input,
#engineeringSections .section-options .form-control.industry-input,
#engineeringSections .skill-input .form-control,
#managementSections .section-options .form-check > input[type="text"].form-control {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 5px 10px !important;
    margin-top: 0 !important;
}

/* ── skill-input wrapper ── */
#engineeringSections .skill-input { flex:1; min-width:0; }
#engineeringSections .skill-input .form-control { width:100%; }

/* ── Expand area wrappers ── */
#engineeringSections .degree-fields,
#engineeringSections .cgpa-fields,
#engineeringSections .core-fields,
#managementSections .mgmt-curricular-input,
#managementSections .mgmt-intern-input,
#managementSections .mgmt-capstone-input,
#managementSections .mgmt-competitions-input,
#managementSections .mgmt-extra-input,
#managementSections .mgmt-personal-brand-input,
#managementSections .bba-fields { width:100%; padding:12px 0 4px 28px; }

/* Expand area inputs: padding override */
#engineeringSections .degree-fields .form-control,
#engineeringSections .cgpa-fields .form-control,
#engineeringSections .core-fields .form-control,
#managementSections .mgmt-curricular-input .form-control,
#managementSections .mgmt-intern-input .form-control,
#managementSections .mgmt-capstone-input .form-control,
#managementSections .mgmt-competitions-input .form-control,
#managementSections .mgmt-extra-input .form-control,
#managementSections .mgmt-personal-brand-input .form-control,
#managementSections .bba-fields .form-control { padding: 8px 12px !important; }

/* ── Input groups (semester inputs) ── */
#engineeringSections .input-group-text,
#managementSections .input-group-text {
    background: #1e2535 !important;
    border: 1px solid var(--eng-border) !important;
    color: var(--eng-text-secondary) !important;
    font-family: 'DM Mono', monospace !important;
    font-size: 12px !important;
    border-radius: var(--eng-radius-sm) 0 0 var(--eng-radius-sm) !important;
}
#engineeringSections .input-group .form-control,
#managementSections .input-group .form-control {
    border-left: none !important;
    border-radius: 0 var(--eng-radius-sm) var(--eng-radius-sm) 0 !important;
}
#engineeringSections .input-group:focus-within .input-group-text,
#managementSections .input-group:focus-within .input-group-text { border-color: var(--eng-accent) !important; }

/* ── Labels & helper text ── */
#engineeringSections .form-label,
#engineeringSections .form-label.small,
#managementSections .form-label,
#managementSections .form-label.small {
    font-size: 12px !important;
    font-weight: 500;
    color: var(--eng-text-secondary) !important;
    margin-bottom: 4px;
}
#engineeringSections small.text-muted, #engineeringSections .text-muted,
#managementSections small.text-muted,  #managementSections .text-muted {
    color: #ff2f20 !important;
    font-size: 12px !important;
}

 .section-options {
        display: none;
        padding-left: 1.5rem;
        animation: fadeSlide 0.3s ease;
    }

    @keyframes fadeSlide {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .form-check-label {
        cursor: pointer;
    }