
/* =====================================
   KW — PRIVATE RESUME REQUEST
===================================== */

.kw-resume-modal {
    width: calc(100% - 32px);
    max-width: 560px;
    max-height: 90dvh;

    margin: auto;
    padding: 35px;

    color: #ffffff;

    background: linear-gradient(
        145deg,
        #201016,
        #111113 65%
    );

    border: 1px solid #df123840;
    border-radius: 22px;

    box-shadow:
        0 25px 100px #00000099,
        0 0 50px #df123815;

    box-sizing: border-box;
    overflow-y: auto;
}

.kw-resume-modal[open] {
    animation: kwResumeEnter 0.45s
        cubic-bezier(0.22, 1, 0.36, 1);
}

.kw-resume-modal::backdrop {
    background: #000000c9;
    backdrop-filter: blur(12px);
}


/* HEADER */

.kw-resume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.kw-resume-brand {
    color: #df1238;
    font-size: 10px;
    letter-spacing: 3px;
}

.kw-resume-close {
    width: 36px;
    height: 36px;

    background: #ffffff08;
    border: 1px solid #ffffff20;
    border-radius: 50%;

    color: #ffffff;
    font-size: 22px;

    cursor: pointer;
    transition: 0.3s ease;
}

.kw-resume-close:hover {
    background: #df1238;
    border-color: #df1238;
    transform: rotate(90deg);
}


/* PRIVATE ACCESS ICON */

.kw-resume-icon {
    display: grid;
    place-items: center;

    width: 65px;
    height: 65px;

    margin-bottom: 24px;

    background: #df123815;

    border: 1px solid #df123840;
    border-radius: 18px;

    color: #df1238;

    box-shadow: 0 0 25px #df123815;
}

.kw-resume-icon svg {
    width: 30px;
    height: 30px;
}


/* TITLE */

.kw-resume-title {
    font-family: Georgia, serif;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 400;

    margin: 0 0 15px;
}

.kw-resume-description {
    color: #a1a1aa;

    font-size: 13px;
    line-height: 1.8;

    margin-bottom: 25px;
}


/* REQUEST FORM */

.kw-resume-form {
    display: flex;
    flex-direction: column;

    gap: 20px;

    padding-top: 25px;

    border-top: 1px solid #ffffff15;
}

.kw-resume-field {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.kw-resume-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #ffffff;

    font-size: 12px;
    font-weight: 500;
}

.kw-resume-required {
    color: #ff496d;
}

.kw-resume-optional {
    color: #a1a1aa;
    font-size: 10px;
    font-weight: 400;
}


/* INPUTS */

.kw-resume-input,
.kw-resume-textarea {
    width: 100%;

    padding: 14px 16px;

    background: #090909;

    border: 1px solid #ffffff20;
    border-radius: 9px;

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.kw-resume-input::placeholder,
.kw-resume-textarea::placeholder {
    color: #66666d;
}

.kw-resume-input:focus,
.kw-resume-textarea:focus {
    border-color: #df1238;

    box-shadow:
        0 0 0 3px #df123815,
        0 0 20px #df123810;
}

.kw-resume-textarea {
    min-height: 100px;
    resize: vertical;
}


/* SUBMIT BUTTON */

.kw-resume-submit {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
    padding: 16px;

    background: linear-gradient(
        135deg,
        #df1238,
        #a50d2c
    );

    color: white;

    border: 1px solid #e52b4e;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.kw-resume-submit svg {
    width: 18px;
    height: 18px;
}

.kw-resume-submit:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow: 0 8px 30px #df123840;
}

.kw-resume-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ONE-WAY SHINE */

.kw-resume-submit::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        115deg,
        transparent 30%,
        #ffffff20 50%,
        transparent 70%
    );

    transform: translateX(-120%);
    transition: none;

    pointer-events: none;
}

.kw-resume-submit:hover:not(:disabled)::after {
    transform: translateX(120%);
    transition: transform 0.8s ease;
}


/* PRIVACY NOTICE */

.kw-resume-privacy {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid #ffffff15;

    color: #a1a1aa;

    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

.kw-resume-privacy svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* STATUS MESSAGE */

.kw-resume-status {
    padding: 14px;

    border: 1px solid #ffffff15;
    border-radius: 8px;

    font-size: 12px;
    line-height: 1.7;
}

.kw-resume-status[hidden] {
    display: none;
}

.kw-resume-status.success {
    color: #81d6a3;
    background: #163b2525;
    border-color: #81d6a340;
}

.kw-resume-status.error {
    color: #ff7590;
    background: #df123815;
    border-color: #df123840;
}


/* LOADING ANIMATION */

.kw-resume-spinner {
    width: 17px;
    height: 17px;

    border: 2px solid #ffffff40;
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: kwResumeSpin 0.8s linear infinite;
}

@keyframes kwResumeSpin {
    to {
        transform: rotate(360deg);
    }
}


/* OPENING ANIMATION */

@keyframes kwResumeEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}


/* MOBILE RESPONSIVE */

@media (max-width: 600px) {

    .kw-resume-modal {
        padding: 24px;
        border-radius: 16px;
    }

    .kw-resume-form {
        gap: 17px;
    }

    .kw-resume-input,
    .kw-resume-textarea {
        font-size: 16px;
    }

}


/* ACCESSIBILITY */

.kw-resume-submit:focus-visible,
.kw-resume-close:focus-visible {
    outline: 2px solid #ff496d;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .kw-resume-modal {
        animation: none !important;
    }

    .kw-resume-modal * {
        transition: none !important;
    }

    .kw-resume-submit::after {
        display: none;
    }

}
