@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #5D87FF;
    --primary-dark: #4570EA;
    --primary-light: #ECF2FF;
    --secondary: #49BEFF;
    --accent: #48C8AF;
    --accent-dark: #3bb39a;
    --accent-light: #E6FFFA;
    --bg: #F2F6FA;
    --text: #2A3547;
    --text-muted: #5A6A85;
    --border: #e5eaef;
    --white: #ffffff;
    --error: #FA896B;
    --error-light: #FDEDE8;
    --warning: #FFAE1F;
    --info: #539BFF;
    --info-light: #EBF3FE;
    --sidebar-width: 270px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    display: flex;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #eff2f7;
    border-radius: 15px;
}

.sidebar-logo {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: rgb(145 158 171 / 12%) 0px 1px 3px 0px;
    backdrop-filter: blur(6px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    background: var(--primary);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    color: var(--primary-dark);
    font-size: 15px;
}

.logo-text span {
    color: var(--text-muted);
    font-size: 12px;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.main {
    flex: 1;
    padding: 32px 16px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 7px;
    border: none;
    padding: 36px 36px 32px;
    box-shadow: rgb(145 158 171 / 30%) 0px 0px 2px 0px, rgb(145 158 171 / 12%) 0px 12px 24px -4px;
}

h1 {
    color: var(--text);
    font-size: 1.3125rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 20px;
}

.intro p {
    margin-bottom: 12px;
    color: var(--text);
}

.intro .formats {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--info-light);
    border-left: 3px solid var(--info);
    border-radius: 7px;
    font-size: 0.875rem;
    color: var(--text);
}

.form {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

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

.field input[type="date"],
.field input[type="text"] {
    font: inherit;
    font-size: 0.875rem;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 135, 255, 0.2);
}

.field input[type="text"] {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

.field input[type="text"]::placeholder {
    letter-spacing: 4px;
    font-weight: 400;
    color: #b5bdc7;
}

.file-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 7px;
    background: var(--bg);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.15s;
    cursor: pointer;
    color: var(--text-muted);
}

.file-zone:hover,
.file-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.file-zone.has-file {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    border-style: solid;
}

.file-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.file-label {
    font-weight: 600;
    font-size: 14px;
}

.file-name {
    font-size: 13px;
    color: var(--text-muted);
    word-break: break-all;
}

.file-zone.has-file .file-name {
    color: var(--accent);
    font-weight: 500;
}

.submit-btn {
    margin-top: 8px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 7px;
    padding: 14px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow: rgb(72 200 175 / 30%) 0px 8px 16px -4px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--accent-dark);
    box-shadow: rgb(72 200 175 / 40%) 0px 8px 20px -4px;
}

.submit-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.submit-btn:disabled {
    background: #7C8FAC;
    cursor: not-allowed;
    box-shadow: none;
}

.legal {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.confirmation {
    text-align: center;
    padding: 48px 36px 44px;
}

.confirmation .check-icon {
    color: var(--accent);
    margin-bottom: 20px;
    display: inline-block;
}

.confirmation h1 {
    color: var(--text);
    margin-bottom: 18px;
    font-size: 1.3125rem;
}

.confirmation p {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 15px;
}

.confirmation .signature {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.confirmation .signature strong {
    color: var(--text);
}

.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 14px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .page-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .header-inner {
        padding: 12px 16px;
    }
    .logo-text strong {
        font-size: 14px;
    }
    .secure-badge {
        font-size: 11px;
        padding: 5px 8px;
    }
    .container {
        padding: 24px 20px;
        border-radius: 7px;
    }
    h1 {
        font-size: 19px;
    }
    .main {
        padding: 20px 12px;
    }
}
