:root {
    --navy: #051367;
    --navy-dark: #030c45;
    --navy-tint: #eef1fa;
    --accent: #4a67b5;
    --ink: #141a2e;
    --muted: #5f6779;
    --line: #e1e5ee;
    --line-strong: #c9d0de;
    --page: #f4f6fa;
    --card: #ffffff;
    --danger: #9f2a1d;
    --danger-tint: #fdf1f0;
    --success: #2f6b4f;
    --success-tint: #eef5f0;
    --ring: rgba(5, 19, 103, 0.14);
    --radius: 3px;
    --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page);
    border-top: 4px solid var(--navy);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wb-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 56px 16px 72px;
}

/* Header */
.wb-header {
    text-align: center;
    margin-bottom: 36px;
}

.wb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--card);
    color: var(--navy);
    margin-bottom: 18px;
}

.wb-badge svg {
    width: 24px;
    height: 24px;
}

.wb-eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.wb-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: 36px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.015em;
}

/* Short accent rule under the title */
.wb-header h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 1px;
    margin: 20px auto 0;
    background: var(--accent);
}

.wb-lead {
    margin: 18px auto 0;
    max-width: 44ch;
    color: var(--muted);
    font-size: 17px;
}

/* Card */
.wb-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(27, 30, 43, 0.03), 0 18px 40px -24px rgba(27, 30, 43, 0.18);
    padding: 44px 44px 36px;
}

/* Fields */
.wb-field {
    margin-bottom: 28px;
}

.wb-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wb-required::after {
    content: " *";
    color: var(--accent);
}

.wb-optional {
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--muted);
}

.wb-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wb-input:hover {
    border-color: #aab3c6;
}

.wb-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px var(--ring);
}

textarea.wb-input {
    min-height: 220px;
    resize: vertical;
}

/* Attachments drop zone: the real file input covers the zone, invisibly */
.wb-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 16px;
    text-align: center;
    background: #f9fafc;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wb-drop:hover,
.wb-drop.is-dragover {
    background: var(--navy-tint);
    border-color: var(--navy);
}

.wb-drop:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px var(--ring);
}

.wb-drop svg {
    width: 24px;
    height: 24px;
    color: var(--navy);
    margin-bottom: 6px;
}

.wb-drop-title {
    font-size: 16px;
    font-weight: 600;
}

.wb-drop-title span {
    color: var(--navy);
    border-bottom: 1px solid var(--accent);
}

.wb-drop-sub {
    color: var(--muted);
    font-size: 13px;
}

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

.wb-files {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.wb-files li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px 10px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.wb-files svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.wb-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-file-size {
    flex: none;
    color: var(--muted);
}

.wb-file-remove {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

.wb-file-remove:hover {
    color: var(--danger);
    background: var(--danger-tint);
}

.wb-file-remove:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
}

.wb-files-total {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* Messages */
.wb-alert {
    margin-bottom: 28px;
    padding: 14px 16px;
    color: var(--danger);
    background: var(--danger-tint);
    border: 1px solid currentColor;
    border-radius: var(--radius);
    font-size: 15px;
}

.wb-result p.wb-warning {
    margin-top: 16px;
    padding: 12px 16px;
    color: var(--danger);
    background: var(--danger-tint);
    border-radius: var(--radius);
    font-size: 15px;
}

.wb-error {
    display: block;
    margin-top: 8px;
    color: var(--danger);
    font-size: 14px;
}

.wb-error:empty {
    display: none;
}

/* Footer of the form */
.wb-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.wb-actions-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.wb-btn {
    display: inline-block;
    padding: 14px 34px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.wb-btn:hover {
    background: var(--navy-dark);
}

.wb-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy);
}

/* Result panels (success / error) */
.wb-result {
    text-align: center;
    padding: 56px 40px;
}

.wb-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.wb-result-icon svg {
    width: 26px;
    height: 26px;
}

.wb-result--success .wb-result-icon {
    color: var(--success);
    background: var(--success-tint);
}

.wb-result--error .wb-result-icon {
    color: var(--danger);
    background: var(--danger-tint);
}

.wb-result h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.wb-result p {
    margin: 0 auto 8px;
    max-width: 46ch;
    color: var(--muted);
}

.wb-result .wb-btn {
    margin-top: 24px;
}

#SuccessMessageDiv {
    display: none;
}

/* Submitting overlay */
.wb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(244, 246, 250, 0.92);
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
}

.wb-spinner {
    width: 38px;
    height: 38px;
    border: 2px solid var(--line-strong);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: wb-spin 0.9s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .wb-spinner {
        animation-duration: 2.4s;
    }

    .wb-input,
    .wb-drop,
    .wb-btn {
        transition: none;
    }
}

@media (max-width: 560px) {
    .wb-page {
        padding: 36px 12px 48px;
    }

    .wb-header h1 {
        font-size: 29px;
    }

    .wb-lead {
        font-size: 16px;
    }

    .wb-card {
        padding: 24px 18px;
    }

    .wb-result {
        padding: 40px 18px;
    }

    .wb-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        text-align: center;
    }

    .wb-btn {
        width: 100%;
    }
}
