
/* =====================================
   KW PORTFOLIO — CONTACT FORM
   ===================================== */

#contact.kw-contact {
    padding: 110px max(7%, 24px);
}

.kw-contact-intro {
    margin: 20px 0 38px;
    max-width: 580px;
    color: #a8a8ad;
    font-size: 15px;
    line-height: 1.8;
}

.kw-contact-form {
    max-width: 800px;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        rgba(28, 15, 20, 0.85),
        rgba(12, 12, 15, 0.95)
    );
}

.kw-contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.kw-contact-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    min-width: 0;
}

.kw-contact-field label {
    color: #e5e5e7;
    font-size: 13px;
    font-weight: 500;
}

.kw-contact-field input,
.kw-contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.kw-contact-field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.kw-contact-field input:focus,
.kw-contact-field textarea:focus {
    border-color: #d41443;
    box-shadow: 0 0 0 3px rgba(212, 20, 67, 0.12);
}

.kw-contact-field input::placeholder,
.kw-contact-field textarea::placeholder {
    color: #777780;
}

#kw-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid #e11d48;
    border-radius: 100px;
    background: linear-gradient(135deg, #e11d48, #9f1239);
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

#kw-contact-submit:hover {
    transform: translateY(-2px);
}

#kw-contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

#kw-contact-status {
    min-height: 22px;
    margin-top: 18px;
    color: #a8a8ad;
    font-size: 13px;
    line-height: 1.6;
}

#kw-contact-status[data-state="success"] {
    color: #86efac;
}

#kw-contact-status[data-state="error"] {
    color: #fda4af;
}

/* Honeypot: invisible to normal visitors */
.kw-contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 640px) {
    #contact.kw-contact {
        padding: 70px 20px;
    }

    .kw-contact-form {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .kw-contact-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #kw-contact-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #kw-contact-submit,
    .kw-contact-field input,
    .kw-contact-field textarea {
        transition: none;
    }
}
/* =====================================
   KW CONTACT — LAYOUT FIX
   ===================================== */

#contact.kw-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

#contact.kw-contact .kw-contact-intro {
    width: 100%;
    max-width: 680px;
    margin: 20px auto 38px;
    text-align: center;
}

#contact.kw-contact .kw-contact-form {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: left;
}

#contact.kw-contact .kw-contact-field {
    align-items: stretch;
    text-align: left;
}

#contact.kw-contact .kw-contact-field label {
    text-align: left;
}

#contact.kw-contact #kw-contact-submit {
    display: flex;
    margin: 0 auto;
}

#contact.kw-contact #kw-contact-status {
    text-align: center;
}
/* =====================================
   CONTACT ME — MINIMAL LUXURY BUTTON
   ===================================== */

#contact.kw-contact .kw-contact-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 4px;
    padding: 15px 30px;

    border: 1px solid #e11d48;
    border-radius: 999px;

    background: transparent;
    color: #fff;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

#contact.kw-contact .kw-contact-open-btn:hover {
    background: #be123c;
    border-color: #be123c;
    transform: translateY(-2px);
}

#contact.kw-contact .kw-contact-open-btn:focus-visible {
    outline: 2px solid #fb7185;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    #contact.kw-contact .kw-contact-open-btn {
        transition: none;
    }
}

/* =====================================
   KW CONTACT — POPUP MODAL
   ===================================== */

.kw-contact-modal[hidden] {
    display: none !important;
}

.kw-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.kw-contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.kw-contact-dialog {
    position: relative;
    width: min(100%, 480px);
    max-height: min(90vh, 760px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 34px;
    border: 1px solid rgba(225, 29, 72, 0.35);
    border-radius: 20px;
    background: linear-gradient(145deg, #1b1117, #0b0a0d);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    text-align: left;
}

.kw-contact-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: #c8c8cc;
    font-size: 28px;
    cursor: pointer;
}

.kw-contact-close:hover {
    color: #fff;
}

.kw-contact-modal-label {
    color: #fb315c;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
}

.kw-contact-dialog h2 {
    margin: 12px 0;
    color: #fff;
    font-size: clamp(25px, 4vw, 34px);
}

.kw-contact-dialog h2 span {
    color: #e11d48;
}

.kw-contact-modal-description {
    margin-bottom: 26px;
    color: #a8a8ad;
    font-size: 13px;
    line-height: 1.7;
}

.kw-contact-dialog .kw-contact-field {
    margin-bottom: 18px;
}

.kw-contact-dialog #kw-contact-submit {
    width: 100%;
    margin-top: 4px;
}

.kw-contact-dialog #kw-contact-status {
    text-align: center;
}

@media (max-width: 480px) {
    .kw-contact-dialog {
        padding: 28px 22px;
        border-radius: 16px;
    }
}
/* =====================================
   KW CONTACT — SUCCESS ANIMATION
   ===================================== */

.kw-contact-success[hidden] {
    display: none !important;
}

.kw-contact-success {
    padding: 35px 5px 15px;
    text-align: center;
    animation: kwSuccessAppear 0.4s ease both;
}

.kw-contact-success-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 26px;
    border: 2px solid #86efac;
    border-radius: 50%;
    background: rgba(134, 239, 172, 0.08);
    color: #86efac;
    font-size: 38px;
    animation: kwSuccessPop 0.5s ease both;
}

.kw-contact-success h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 23px;
}

.kw-contact-success p {
    max-width: 340px;
    margin: 0 auto 30px;
    color: #b5b5bd;
    font-size: 14px;
    line-height: 1.8;
}

#kw-contact-done {
    width: 100%;
    padding: 14px 24px;
    border: 1px solid #e11d48;
    border-radius: 999px;
    background: #be123c;
    color: white;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

#kw-contact-done:hover {
    background: #e11d48;
}

@keyframes kwSuccessAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kwSuccessPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kw-contact-success,
    .kw-contact-success-icon {
        animation: none;
    }
}
#kw-contact-form[hidden] {
    display: none !important;
}
#kw-contact-form[hidden] {
    display: none !important;
}