/* ==========================================================================
   sendfiles.uk.escribers.net — eScribers UK upload page
   Brand inspired by uk.escribers.net: raspberry/flame accents, white cards,
   soft shadows, Poppins headings + Inter body.
   NOTE: the selectors used by js/script.js must keep working:
   .upload-panel (.dragging / .upload-selected), .top-title(-huge-logo),
   .middle-pan, .bottom-text, .hidden, .upload-file-list, .progress-bar-*,
   .upload-text, .non-ascii-file, .remove-file-cell, #globalProgressBar
   ========================================================================== */

:root {
    --brand: #E8305A;
    --brand-dark: #C9224A;
    --flame: #F05A28;
    --grad: linear-gradient(120deg, #E8305A 0%, #F05A28 100%);
    --ink: #1F2430;
    --muted: #697080;
    --line: #E7E9EE;
    --bg: #F6F7F9;
    --card: #FFFFFF;
}

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    height: 52px;
    width: auto;
}

.menu a {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ink);
    text-decoration: none;
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.menu a:hover {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--grad);
    color: #fff;
    text-align: center;
    padding: 64px 24px 118px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hero::before {
    width: 380px;
    height: 380px;
    right: -130px;
    top: -150px;
}

.hero::after {
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -120px;
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 4.5vw, 46px);
    margin: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

.hero-sub {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 12px auto 0;
    font-size: 17px;
    opacity: 0.95;
}

/* --------------------------------------------------------------------------
   Layout / cards
   -------------------------------------------------------------------------- */
.container-small {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.blocks-container {
    display: flex;
    gap: 28px;
    align-items: stretch;
    margin-top: -68px;
    position: relative;
    z-index: 2;
}

.form-container {
    flex: 1;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 24px 48px -20px rgba(31, 36, 48, 0.25);
}

.step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.step-badge {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -8px rgba(232, 48, 90, 0.7);
}

.step-head .h4 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Upload panel (mechanics used by script.js — keep positioning model)
   -------------------------------------------------------------------------- */
.upload-panel {
    position: relative;
    height: 384px;
    border: 2px dashed #D5D9E2;
    border-radius: 14px;
    background: #FAFBFC;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.upload-panel:hover {
    border-color: var(--brand);
    background: #FFF8F6;
}

.upload-panel.dragging {
    border-color: var(--brand);
    background: #FFEFF3;
}

.upload-panel.upload-selected {
    cursor: default;
    border-style: solid;
}

.upload-panel.upload-selected:hover {
    border-color: var(--line);
    background: #FAFBFC;
}

.top-title {
    text-align: center;
    padding: 16px 16px 4px;
}

.upload-logo {
    margin: 0;
    font-size: 26px;
    color: var(--brand);
}

.top-title-huge-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
}

.top-title-huge-logo .upload-logo {
    font-size: 64px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 18px rgba(232, 48, 90, 0.28));
}

.middle-pan:not(.hidden) {
    position: absolute;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 0 14px;
}

.middle-pan::-webkit-scrollbar {
    width: 8px;
}

.middle-pan::-webkit-scrollbar-thumb {
    background: #D5D9E2;
    border-radius: 99px;
}

.bottom-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    padding: 14px;
}

.upload-panel-title {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   File list (rows are generated by script.js)
   -------------------------------------------------------------------------- */
.upload-file-list {
    width: 100%;
    font-size: 13.5px;
    border-collapse: separate;
    border-spacing: 0 6px;
}

.upload-file-list th {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 10px 6px 2px;
}

.upload-file-list td {
    padding: 0 6px;
    vertical-align: middle;
}

.progress-bar-container {
    position: relative;
    height: 34px;
    border-radius: 9px;
    background: #F1F3F7;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.progress-bar-row {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    transition: width .25s ease;
}

.progress-bar-row.non-ascii-file {
    width: 100%;
    background-color: rgba(243, 144, 170, 0.55);
}

.upload-text {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    white-space: nowrap;
    color: var(--ink);
}

.upload-file-list td:nth-child(2) {
    white-space: nowrap;
    color: var(--muted);
}

.remove-file-cell {
    text-align: center;
}

.remove-file-cell i {
    color: #C24040;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity .15s;
    padding: 6px;
}

.remove-file-cell i:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Global progress bar (#globalProgressBar IS the fill — JS drives width/color)
   -------------------------------------------------------------------------- */
.global-progress-bar {
    height: 8px;
    border-radius: 99px;
    background-color: #E7E9EE;
    margin-top: 16px;
    transition: width .3s ease;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-control {
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #FBFBFD;
    padding: 10px 14px;
    font-size: 14.5px;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(232, 48, 90, 0.12);
    background: #fff;
}

.form-control::placeholder {
    color: #A6ACBA;
}

.red-dot {
    color: var(--brand);
}

.small-text {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

#send-verification-code-btn {
    background: var(--grad);
    border: none;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    padding: 12px 22px;
    box-shadow: 0 12px 24px -12px rgba(232, 48, 90, 0.65);
    transition: transform .15s, box-shadow .15s, filter .15s;
}

#send-verification-code-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -12px rgba(232, 48, 90, 0.7);
}

#send-verification-code-btn:disabled {
    background: #C9CDD6;
    box-shadow: none;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    margin-top: 56px;
    padding: 26px 24px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--muted);
}

.footer-block p {
    margin: 2px 0;
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--ink);
}

.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
}

.footer-contact a:hover {
    color: var(--brand);
}

.footer-contact i {
    color: var(--brand);
    margin-right: 6px;
}

/* --------------------------------------------------------------------------
   SweetAlert2 theming
   -------------------------------------------------------------------------- */
.swal2-popup {
    border-radius: 18px !important;
    font-family: 'Inter', sans-serif !important;
}

.swal2-title {
    font-family: 'Poppins', sans-serif !important;
    color: var(--ink) !important;
}

.swal2-styled {
    border-radius: 999px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    padding: 10px 26px !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .header-inner {
        padding: 10px 16px;
    }

    .logo img {
        height: 44px;
    }

    .hero {
        padding: 44px 20px 100px;
    }

    .blocks-container {
        flex-direction: column;
        margin-top: -56px;
    }

    .upload-panel {
        height: 320px;
    }

    .site-footer {
        text-align: center;
    }

    .footer-inner {
        justify-content: center;
    }
}
