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

body {
    background: #f4f6fb;
    color: #1b1b1b;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* Watermark */

.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: .08;
    z-index: -1;
    pointer-events: none;
}

.watermark img {
    width: 500px;
    max-width: 80vw;
}

/* Header */
.topbar {
    background: #08295f;
    color: #fff;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
}

.topbar .logo {
    display: flex;
    align-items: center;
}

.topbar .logo img {
    width: auto;
    height: 55px;
    display: block;
}

.ssl {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Main Layout */

.container {
    max-width: 1400px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    padding: 0 20px;
}

.content h1 {
    margin-bottom: 10px;
}

.intro {
    margin-bottom: 20px;
    font-size: 14px;
}

/* Cards */

.card,
.panel {
    background: #fff;
    border: 1px solid #dce1ea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card h2,
.panel h3 {
    margin-bottom: 15px;
    color: #08295f;
}

.panel ul {
    padding-left: 18px;
    font-size: 14px;
}

.panel li {
    margin-bottom: 10px;
    font-size: 14px;
}

/* Grids */

.grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

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

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

/* Form Elements */

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfd5e2;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
    font-family: inherit;
    min-width: 0;
}

textarea {
    resize: none;
    min-height: 220px;
    padding: 15px;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #08295f;
}

input[type="date"] {
    height: 56px;
    min-height: 56px;
}

.grid3 > div {
    display: flex;
    flex-direction: column;
}

/* Uploads */

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.upload-title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.upload-info {
    font-size: 12px;
    color: #666;
}

.upload-box {
    margin-top: 10px;
    border: 2px dashed #d6dce8;
    border-radius: 8px;
    background: #fafbfd;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
}

.upload-box:hover {
    border-color: #08295f;
    background: #f4f8ff;
}

.upload-box.dragover {
    border-color: #08295f;
    background: #eaf3ff;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.file-name {
    margin-top: 10px;
    color: #08295f;
    font-size: 13px;
    font-weight: 600;
    word-break: break-word;
    min-height: 18px;
}

.preview-container {
    margin-top: 10px;
}

.preview-container img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 6px;
    border: 1px solid #dce1ea;
}

/* Validation */

.error {
    border: 2px solid #d32f2f !important;
}

.upload-box.error {
    border: 2px solid #d32f2f !important;
}

/* Checkbox */

.form-check-input {
    width: auto;
    margin-right: 8px;
}

/* Buttons */

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    background: #08295f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    background: #08419c;
}

/* Footer */

footer {
    background: #08295f;
    color: #fff;
    padding: 40px 30px;
    margin-top: 30px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-logo img {
    width: 280px;
    max-width: 100%;
    display: block;
}

.secure {
    max-width: 500px;
    font-size: 15px;
    line-height: 1.6;
}


/* Responsive */

@media (max-width: 768px) {

    .container {
        grid-template-columns: 1fr;
    }

    .upload-grid,
    .grid2,
    .grid3 {
        grid-template-columns: 1fr;
    }

    /* Header */

    .topbar {
        padding: 10px 12px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .topbar .logo img {
        height: 35px;
        width: auto;
        max-width: 180px;
        display: block;
    }

    .ssl {
        font-size: 10px;
        white-space: nowrap;
    }

    /* Footer */

    footer {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    footer .logo img,
    .footer-logo img {
        height: 55px;
        width: auto;
        max-width: 180px;
    }

    .secure {
        font-size: 11px;
        line-height: 1.4;
        max-width: 220px;
    }

    .actions {
        justify-content: center;
    }

    .btn {
        width: 100%;
    }
}

.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}