﻿:root {
    --wsm-pay-bg: #f7f9fc;
    --wsm-pay-surface: #ffffff;
    --wsm-pay-ink: #0b1f3a;
    --wsm-pay-muted: #64748b;
    --wsm-pay-line: #dfe7ef;
    --wsm-pay-teal: #00a8c8;
    --wsm-pay-teal-2: #e5fbff;
    --wsm-pay-teal-dark: #007d95;
    --wsm-pay-shadow: 0 18px 44px rgba(11,31,58,.08);
    --wsm-pay-shadow-lg: 0 28px 70px rgba(11,31,58,.13);
}

.wsm-pay-page {
    color: var(--wsm-pay-ink);
    background: var(--wsm-pay-bg);
    overflow-x: hidden;
}

.wsm-pay-shell {
    width: 100%;
    max-width: none;
    padding-left: 32px;
    padding-right: 32px;
    margin: 0 auto;
}

.wsm-pay-hero,
.wsm-pay-section {
    background: linear-gradient(rgba(11,31,58,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,31,58,.035) 1px, transparent 1px), radial-gradient(circle at 8% 12%, rgba(0,168,200,.11), transparent 30%), radial-gradient(circle at 90% 18%, rgba(29,78,216,.07), transparent 28%), linear-gradient(135deg,#fbfdff 0%,#f4f8fb 52%,#eef5f8 100%);
    background-size: 46px 46px,46px 46px,auto,auto,auto;
}

.wsm-pay-hero {
    padding: clamp(58px, 5vw, 92px) 0;
    border-bottom: 1px solid var(--wsm-pay-line);
}

.wsm-pay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(560px, .85fr);
    gap: clamp(34px, 5vw, 82px);
    align-items: center;
}

.wsm-pay-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--wsm-pay-teal-dark);
    background: #fff;
    border: 1px solid var(--wsm-pay-line);
    box-shadow: 0 8px 22px rgba(11,31,58,.05);
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.wsm-pay-copy h1 {
    max-width: 1080px;
    margin: 26px 0 20px;
    color: var(--wsm-pay-ink);
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: .96;
    letter-spacing: -.07em;
    font-weight: 950;
}

.wsm-pay-copy p,
.wsm-pay-head p {
    color: var(--wsm-pay-muted);
    font-size: clamp(1rem, 1.05vw, 1.12rem);
    line-height: 1.82;
    font-weight: 620;
}

.wsm-pay-actions,
.wsm-pay-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.wsm-pay-btn {
    min-height: 54px;
    padding: 0 22px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: .94rem;
    font-weight: 950;
    transition: all .25s ease;
}

    .wsm-pay-btn.primary {
        color: #fff;
        background: linear-gradient(135deg, #00a8c8, #007d95);
        box-shadow: 0 18px 38px rgba(0,168,200,.22);
    }

    .wsm-pay-btn.outline {
        color: var(--wsm-pay-ink);
        background: #fff;
        border: 1px solid var(--wsm-pay-line);
    }

    .wsm-pay-btn i {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(255,255,255,.22);
        transition: transform .25s ease;
    }

    .wsm-pay-btn.outline i {
        background: #eef7fa;
    }

    .wsm-pay-btn:hover {
        transform: translateY(-3px);
    }

        .wsm-pay-btn:hover i {
            transform: translateX(4px);
        }

.wsm-pay-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

    .wsm-pay-proof span {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0 14px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid var(--wsm-pay-line);
        box-shadow: 0 8px 22px rgba(11,31,58,.05);
        font-size: .84rem;
        font-weight: 900;
    }

    .wsm-pay-proof i {
        color: var(--wsm-pay-teal-dark);
    }

.wsm-pay-board {
    border-radius: 32px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--wsm-pay-line);
    box-shadow: var(--wsm-pay-shadow-lg);
    overflow: hidden;
}

.wsm-pay-board-head,
.wsm-pay-form-head {
    min-height: 68px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--wsm-pay-line);
    background: rgba(251,253,255,.9);
}

    .wsm-pay-board-head span,
    .wsm-pay-board-head strong,
    .wsm-pay-form-head span,
    .wsm-pay-form-head strong {
        text-transform: uppercase;
        letter-spacing: .11em;
        font-size: .74rem;
        font-weight: 950;
        color: #8a98aa;
    }

    .wsm-pay-board-head strong,
    .wsm-pay-form-head strong {
        color: var(--wsm-pay-teal-dark);
    }

.wsm-pay-board-body {
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
    background: linear-gradient(rgba(11,31,58,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,31,58,.035) 1px, transparent 1px), #fff;
    background-size: 34px 34px;
}

    .wsm-pay-board-body article {
        position: relative;
        min-height: 190px;
        padding: 26px 22px;
        border-radius: 24px;
        background: rgba(255,255,255,.92);
        border: 1px solid var(--wsm-pay-line);
        box-shadow: 0 12px 30px rgba(11,31,58,.055);
        overflow: hidden;
        transition: all .25s ease;
    }

        .wsm-pay-board-body article:hover {
            transform: translateY(-6px);
            border-color: rgba(0,168,200,.34);
            box-shadow: 0 24px 58px rgba(11,31,58,.11);
        }

    .wsm-pay-board-body i {
        position: absolute;
        left: 18px;
        top: 16px;
        color: rgba(0,168,200,.18);
        font-size: 3.5rem;
    }

    .wsm-pay-board-body h3 {
        position: relative;
        z-index: 1;
        padding-top: 54px;
        margin: 0 0 10px;
        color: var(--wsm-pay-ink);
        font-size: 1.12rem;
        font-weight: 950;
    }

    .wsm-pay-board-body p {
        position: relative;
        z-index: 1;
        margin: 0;
        color: var(--wsm-pay-muted);
        line-height: 1.65;
        font-weight: 650;
    }

.wsm-pay-section {
    padding: clamp(64px, 5vw, 96px) 0;
    border-bottom: 1px solid var(--wsm-pay-line);
}

.wsm-pay-head {
    max-width: 950px;
    margin: 0 auto 34px;
    text-align: center;
}

    .wsm-pay-head h2 {
        margin: 22px 0 14px;
        color: var(--wsm-pay-ink);
        font-size: clamp(2.25rem, 3.15vw, 4.25rem);
        line-height: 1.05;
        letter-spacing: -.055em;
        font-weight: 950;
    }

.wsm-pay-form-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.wsm-pay-form {
    border-radius: 32px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--wsm-pay-line);
    box-shadow: var(--wsm-pay-shadow-lg);
    overflow: hidden;
}

.wsm-pay-form-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.wsm-pay-field.full {
    grid-column: 1 / -1;
}

.wsm-pay-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--wsm-pay-ink);
    font-size: .78rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-weight: 950;
}

    .wsm-pay-field label em {
        color: #dc2626;
        font-style: normal;
    }

.wsm-pay-field input,
.wsm-pay-field select,
.wsm-pay-field textarea {
    width: 100%;
    border: 1px solid var(--wsm-pay-line);
    border-radius: 16px;
    background: rgba(251,253,255,.92);
    color: var(--wsm-pay-ink);
    font-size: .95rem;
    font-weight: 750;
    outline: none;
    transition: all .22s ease;
}

.wsm-pay-field input,
.wsm-pay-field select {
    min-height: 58px;
    padding: 0 18px;
}

.wsm-pay-field textarea {
    min-height: 150px;
    padding: 16px 18px;
    resize: vertical;
}

    .wsm-pay-field input:focus,
    .wsm-pay-field select:focus,
    .wsm-pay-field textarea:focus {
        border-color: rgba(0,168,200,.48);
        box-shadow: 0 0 0 4px rgba(0,168,200,.10);
        background: #fff;
    }

.wsm-pay-field input[type="file"] {
    padding: 13px 14px;
}

    .wsm-pay-field input[type="file"]::file-selector-button {
        min-height: 38px;
        padding: 0 16px;
        margin-right: 14px;
        border-radius: 12px;
        border: 1px solid rgba(0,168,200,.30);
        color: var(--wsm-pay-teal-dark);
        background: var(--wsm-pay-teal-2);
        font-weight: 950;
        cursor: pointer;
    }

.wsm-pay-submit-row {
    justify-content: space-between;
    padding: 0 30px 30px;
    margin-top: 0;
}

@media(max-width: 1199.98px) {
    .wsm-pay-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 767.98px) {
    .wsm-pay-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .wsm-pay-copy h1 {
        font-size: clamp(2.45rem, 10vw, 3.7rem);
    }

    .wsm-pay-actions,
    .wsm-pay-submit-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wsm-pay-btn {
        width: 100%;
    }

    .wsm-pay-board-body,
    .wsm-pay-form-grid {
        grid-template-columns: 1fr;
    }

    .wsm-pay-board-head,
    .wsm-pay-form-head {
        padding: 18px 22px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .wsm-pay-form-grid {
        padding: 22px;
    }

    .wsm-pay-submit-row {
        padding: 0 22px 22px;
    }
}

/* =========================================================
   PAYROLL VALIDATION + POPUP
========================================================= */

.wsm-pay-error {
    display: block;
    min-height: 18px;
    margin-top: 7px;
    color: #dc2626;
    font-size: .78rem;
    line-height: 1.35;
    font-weight: 850;
}

.wsm-pay-field {
    position: relative;
}

    .wsm-pay-field.is-valid input,
    .wsm-pay-field.is-valid select,
    .wsm-pay-field.is-valid textarea {
        border-color: rgba(22,163,74,.45);
        box-shadow: 0 0 0 4px rgba(22,163,74,.08);
    }

    .wsm-pay-field.is-invalid input,
    .wsm-pay-field.is-invalid select,
    .wsm-pay-field.is-invalid textarea {
        border-color: rgba(220,38,38,.50);
        box-shadow: 0 0 0 4px rgba(220,38,38,.08);
    }

    .wsm-pay-field.is-valid::after {
        content: "\F26A";
        font-family: "bootstrap-icons";
        position: absolute;
        right: 16px;
        top: 42px;
        color: #16a34a;
        font-size: 1rem;
        pointer-events: none;
    }

    .wsm-pay-field:has(input[type="file"])::after {
        display: none;
    }

.wsm-pay-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    margin: 22px 30px 0;
    border-radius: 16px;
    font-weight: 850;
    line-height: 1.55;
}

    .wsm-pay-alert.error {
        color: #991b1b;
        background: #fee2e2;
        border: 1px solid #fecaca;
    }

.wsm-pay-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 18, 35, 0.46);
    backdrop-filter: blur(6px);
    animation: wsmPayFadeIn .25s ease;
}

    .wsm-pay-success-overlay.hide {
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
    }

.wsm-pay-success-modal {
    width: min(92vw, 500px);
    padding: 38px 34px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(8,20,38,.18);
    text-align: center;
    animation: wsmPayPopupUp .32s cubic-bezier(.16,1,.3,1);
}

.wsm-pay-success-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#31d67b,#16a34a);
    color: #fff;
    font-size: 2.8rem;
    box-shadow: 0 16px 40px rgba(22,163,74,.22);
}

.wsm-pay-success-modal h3 {
    margin: 0 0 12px;
    color: #082046;
    font-size: 1.7rem;
    font-weight: 950;
}

.wsm-pay-success-modal p {
    margin: 0 auto 24px;
    max-width: 390px;
    color: #64748b;
    line-height: 1.75;
    font-size: .96rem;
    font-weight: 600;
}

.wsm-pay-success-btn {
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg,#00a8c8,#007d95);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: .25s ease;
}

    .wsm-pay-success-btn:hover {
        transform: translateY(-2px);
    }

@keyframes wsmPayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes wsmPayPopupUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

