:root {
    --ldc-bg: #eef3f8;
    --ldc-panel: #ffffff;
    --ldc-primary: #16375f;
    --ldc-primary-soft: #e8f0fb;
    --ldc-accent: #2f7cf6;
    --ldc-accent-dark: #185bc2;
    --ldc-text: #142033;
    --ldc-muted: #66758a;
    --ldc-border: #d8e1ec;
    --ldc-warning: #fff1ba;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: linear-gradient(135deg, #0d2038 0%, #16375f 45%, #eef3f8 45%, #eef3f8 100%);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ldc-text);
    background: transparent;
    font-family: "Segoe UI", Arial, sans-serif;
}

.transfer-app {
    width: 100%;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 18px;
}

.hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
    min-height: 210px;
    margin-bottom: 24px;
    padding: 24px;
    color: #fff;
    background: linear-gradient(135deg, rgba(22, 55, 95, 0.96), rgba(33, 93, 153, 0.88));
    border-radius: 8px;
    box-shadow: 0 20px 55px rgba(13, 32, 56, 0.24);
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
}

.hero-brand img {
    max-width: 185px;
    max-height: 145px;
    object-fit: contain;
}

.hero-copy .eyebrow {
    margin: 0 0 8px;
    color: #cfe2ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 10px;
    font-size: 2.6rem;
    font-weight: 750;
}

.hero-copy p {
    max-width: 660px;
    margin: 0;
    color: #edf5ff;
    font-size: 1.05rem;
}

.blocGrid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
    gap: 20px;
    align-items: start;
}

.panel {
    background: var(--ldc-panel);
    border: 1px solid var(--ldc-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 14px 38px rgba(20, 32, 51, 0.09);
}

.blocInput {
    grid-column: 1 / -1;
}

.section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--ldc-primary);
    border-radius: 999px;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    color: var(--ldc-primary);
    font-size: 1.35rem;
    font-weight: 750;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--ldc-muted);
    font-size: 0.95rem;
}

.infoClient {
    display: grid;
    gap: 8px;
}

.infoClient label,
.globalInput label {
    color: var(--ldc-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-control {
    min-height: 44px;
    color: var(--ldc-text);
    border: 1px solid var(--ldc-border);
    border-radius: 8px;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--ldc-accent);
    box-shadow: 0 0 0 0.18rem rgba(47, 124, 246, 0.16);
}

.form-control.bg-warning {
    background-color: var(--ldc-warning) !important;
    border-color: #d7a600;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.upload-zone {
    min-height: 190px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    color: var(--ldc-primary);
    background: #f8fbff;
    border: 2px dashed #abc0d8;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
    background-color: var(--ldc-primary-soft);
    border-color: var(--ldc-accent);
    box-shadow: 0 10px 26px rgba(47, 124, 246, 0.15);
    transform: translateY(-1px);
}

.upload-zone i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--ldc-accent);
    background: #eaf2ff;
    border-radius: 999px;
    font-size: 1.75rem;
}

.upload-zone strong {
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 750;
}

.upload-zone span {
    color: var(--ldc-muted);
    font-size: 0.9rem;
}

.groupBtn {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.groupBtn .btn {
    min-height: 48px;
    border-radius: 8px;
    font-weight: 700;
}

.groupBtn .btn i,
.envoiForm .btn i {
    margin-right: 8px;
}

.btn-secondary {
    color: var(--ldc-primary);
    background: #eef4fb;
    border-color: #d1deec;
}

.btn-secondary:hover {
    color: var(--ldc-primary);
    background: #e0ebf8;
    border-color: #b9cce2;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ldc-accent), var(--ldc-accent-dark));
    border: 0;
    box-shadow: 0 9px 20px rgba(47, 124, 246, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #438bff, #1d64cf);
}

.work-type-title {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 16px;
    padding: 6px 12px;
    color: var(--ldc-primary);
    background: var(--ldc-primary-soft);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.globalInput {
    max-width: 760px;
}

.globalInput > div {
    display: grid;
    gap: 8px;
}

.globalInput input,
.globalInput textarea {
    width: 100%;
    margin-bottom: 8px;
}

.envoiForm {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ldc-border);
}

.envoiForm button {
    min-width: 240px;
    min-height: 50px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
}

.admin {
    margin-top: 16px;
    text-align: right;
}

.admin a {
    color: #d9e8ff;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.admin a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 860px) {
    html {
        background: var(--ldc-bg);
    }

    .page-shell {
        width: min(100% - 20px, 680px);
        padding-top: 10px;
    }

    .hero,
    .blocGrid,
    .upload-grid,
    .groupBtn {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 18px;
        padding: 18px;
    }

    .hero-brand {
        height: 130px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .panel {
        padding: 18px;
    }

    .envoiForm {
        justify-content: stretch;
    }

    .envoiForm button {
        width: 100%;
    }

    .admin a {
        color: var(--ldc-primary);
    }
}
