:root {
    --ink: #0a0a0a;
    --ink-soft: #1c1c1e;
    --signal: #e4002b;
    --signal-dark: #b8001f;
    --paper: #f6f4ef;
    --paper-line: #e4e0d6;
    --white: #ffffff;
    --ash: #6f6d68;
    --ash-light: #a6a39b;
    --field-border: #d8d4c9;
}

* {
    box-sizing: border-box;
}

html, body {
    background: var(--paper);
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}

.center {
    text-align: inherit;
}

/* The legacy <center> tag wrapping the form would otherwise center every
   label and line of text inside it via inheritance. */
.stlth-main center {
    text-align: left;
}

.justify-content-md-center {
    padding: 0 0 4px 0 !important;
}

/* ---------- Shell: two-zone composition ---------- */
.stlth-shell {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
    max-width: 1360px;
    margin: 0 auto;
}

.stlth-aside {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--ink);
    color: var(--white);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.stlth-back {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    color: var(--ash-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 16px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.stlth-back:hover {
    border-color: var(--signal);
    color: var(--white);
    text-decoration: none;
}

.stlth-aside-brand {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.1;
}

.stlth-aside-copy {
    margin: -16px 0 0;
    color: var(--ash-light);
    font-size: 15px;
    max-width: 34ch;
}

.stlth-main {
    padding: 56px 64px 96px;
    max-width: 880px;
}

.stlth-mobile-header {
    display: none;
}

/* ---------- Section rhythm ---------- */
.stlth-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 44px 0 20px;
    padding-top: 32px;
    border-top: 1px solid var(--paper-line);
}

.stlth-section-title.stlth-section-title--first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.stlth-section-title svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--signal);
}

/* ---------- Field icons ---------- */
.stlth-field-icon {
    position: relative;
}

.stlth-field-icon-glyph {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--ash);
    pointer-events: none;
}

.stlth-field-icon-glyph svg {
    width: 18px;
    height: 18px;
}

.form-control.has-icon {
    padding-left: 42px !important;
}

/* ---------- Custom grid (does not depend on Bootstrap loading) ---------- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
}

@media (min-width: 700px) {
    .row > .col-md-2 { flex: 0 0 27%; max-width: 27%; }
    .row > .col-md-3 { flex: 0 0 41.6667%; max-width: 41.6667%; }
    .row > .col-md-4 { flex: 0 0 58.3333%; max-width: 58.3333%; }
    .row > .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Bootstrap ships .justify-content-md-center{justify-content:center!important}
   (every .row in this form carries that class), which fights our left-aligned
   layout above 768px. Beat it with higher specificity, not !important wars. */
.row.justify-content-md-center {
    justify-content: flex-start !important;
}

/* ---------- Form controls ---------- */
.control-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: inline-block;
}

.form-control,
.select2-container--default .select2-selection--single {
    display: block;
    width: 100% !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 15px !important;
    border: 1px solid var(--field-border) !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    height: auto !important;
    background: var(--white) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--ink) !important;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08) !important;
    outline: none;
}

textarea.form-control {
    padding: 12px 14px !important;
}

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

/* Radio / checkbox */
input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--ink);
    width: 17px;
    height: 17px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Buttons */
.btn-black {
    background: var(--ink) !important;
    color: var(--white) !important;
    border: none;
    padding: 14px 30px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.1s ease;
}
.btn-black:hover {
    background: var(--signal) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

#submit_btn {
    width: 100%;
    max-width: 320px;
    padding: 16px 30px;
    font-size: 15px;
}

/* ---------- Upload dropzones ---------- */
.stlth-upload {
    max-width: 480px;
}

.stlth-upload-control {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    background: var(--white);
    border: 1.5px dashed var(--field-border);
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.stlth-upload-control:hover {
    border-color: var(--ink);
    background: var(--paper);
}

.stlth-upload.is-dragover .stlth-upload-control {
    border-color: var(--signal);
    background: #fdeeef;
}

.stlth-upload.is-filled .stlth-upload-control {
    border-style: solid;
    border-color: var(--ink);
}

.stlth-upload-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
}

.stlth-upload-icon svg {
    width: 22px;
    height: 22px;
}

.stlth-upload-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stlth-upload-title {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink);
}

.stlth-upload-hint {
    font-size: 12.5px;
    color: var(--ash);
}

.stlth-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.stlth-upload-file {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--paper);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
}

.stlth-upload.is-filled .stlth-upload-file {
    display: flex;
}

.stlth-upload-file-icon {
    flex: none;
    display: flex;
    color: var(--signal);
}

.stlth-upload-file-icon svg {
    width: 17px;
    height: 17px;
}

.stlth-upload-file-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
}

.stlth-upload-clear {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ash);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.stlth-upload-clear:hover {
    background: var(--field-border);
    color: var(--ink);
}

.stlth-upload-clear svg {
    width: 13px;
    height: 13px;
}

.alert-danger {
    display: inline-block;
    color: var(--signal-dark);
    font-size: 13px;
    font-weight: 600;
}

.stlth-form-error {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid var(--signal-dark);
    border-left-width: 4px;
    border-radius: 6px;
    color: var(--signal-dark);
    font-size: 14px;
    font-weight: 600;
}

.stlth-form-error p {
    margin: 0;
}

.stlth-form-error p + p {
    margin-top: 4px;
}

footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--paper-line);
    color: var(--ash);
    font-size: 13px;
}
footer a {
    color: var(--ink);
    font-weight: 600;
}

/* Custom styles for Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 46px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    padding-left: 14px !important;
    color: var(--ink) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

.select2-dropdown {
    border: 1px solid var(--field-border) !important;
    border-radius: 6px !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 15px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--field-border) !important;
    border-radius: 6px !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 15px !important;
}

.select2-container--default .select2-results__option {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 15px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .stlth-shell {
        display: block;
    }

    .stlth-aside {
        display: none;
    }

    .stlth-mobile-header {
        display: block;
        background: var(--ink);
        color: var(--white);
        padding: 24px 20px 28px;
        border-bottom: 3px solid var(--signal);
    }

    .stlth-mobile-header .stlth-back {
        margin-bottom: 18px;
    }

    .stlth-mobile-header .stlth-aside-brand {
        font-size: 24px;
    }

    .stlth-mobile-header .stlth-aside-copy {
        margin-top: 8px;
        max-width: none;
    }

    .stlth-main {
        max-width: 640px;
        margin: 0 auto;
        padding: 32px 20px 56px;
    }
}

@media (max-width: 480px) {
    .stlth-section-title {
        font-size: 19px;
    }
}
