/*==========================================
  Desiwood — Contact Us page (resources/views/frontend/pages/contact-us.blade.php;
  behaviour in public/frontend/js/dw-contact.js).

  Every rule is scoped to .dw-contact and follows the login page's app shell
  (dw-login.css): one rounded card aligned to the header container, with the
  contact options on the left and the form on the right. Below 992px the two
  stack, form first.
==========================================*/

.dw-contact {
    --dc-shell: #120b1c;
    --dc-field: rgba(255, 255, 255, .04);
    --dc-line: rgba(255, 255, 255, .1);
    --dc-line-strong: rgba(255, 255, 255, .2);
    --dc-text: #fff;
    --dc-muted: #a39db1;
    --dc-accent: #ff8a00;
    --dc-accent-2: #ff006e;
    --dc-gradient: linear-gradient(90deg, var(--dc-accent) 0%, var(--dc-accent-2) 100%);
    --dc-error: #ff6b7d;
    --dc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dc-fast: .2s;
    position: relative;
    isolation: isolate;
    /* Clears the fixed site header (88px). */
    padding: 132px 0 110px;
    font-family: "Inter", var(--default-font, "Poppins"), sans-serif;
    color: var(--dc-text);
}

/* Soft brand glow behind the heading. */
.dw-contact::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    z-index: -1;
    width: min(1200px, 130vw);
    height: 760px;
    transform: translateX(-50%);
    background:
        radial-gradient(38% 42% at 50% 22%, rgba(170, 40, 220, .26), transparent 70%),
        radial-gradient(40% 50% at 28% 60%, rgba(255, 120, 0, .12), transparent 70%),
        radial-gradient(45% 55% at 74% 62%, rgba(255, 0, 110, .14), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

/* ---------- Heading ---------- */

.dw-contact__head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.dw-contact__eyebrow {
    margin: 0 0 16px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1;
    text-transform: uppercase;
    color: #ff9d3d;
}

.dw-contact__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.06;
    color: var(--dc-text);
}

.dw-contact__title span {
    white-space: nowrap;
    background: var(--dc-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dw-contact__lead {
    max-width: 540px;
    margin: 18px auto 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--dc-muted);
}

/* ---------- Shell ---------- */

.dw-contact__shell {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid var(--dc-line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 30%), var(--dc-shell);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 100px -40px rgba(0, 0, 0, .9);
}

/* ---------- Info panel ---------- */

.dw-contact__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px;
    border-right: 1px solid var(--dc-line);
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(255, 138, 0, .1), transparent 60%),
        radial-gradient(90% 60% at 100% 100%, rgba(255, 0, 110, .1), transparent 60%);
}

.dw-contact__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--dc-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    color: var(--dc-text);
    text-decoration: none;
    transition: border-color var(--dc-fast) var(--dc-ease), background-color var(--dc-fast) var(--dc-ease), transform var(--dc-fast) var(--dc-ease);
}

.dw-contact__card:hover {
    border-color: rgba(255, 138, 0, .4);
    background: rgba(255, 255, 255, .055);
    color: var(--dc-text);
    transform: translateY(-2px);
}

.dw-contact__card-icon {
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 138, 0, .3);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(255, 138, 0, .16), rgba(255, 0, 110, .14));
    font-size: 19px;
    color: #ffc58f;
}

.dw-contact__card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dw-contact__card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.dw-contact__card-value {
    font-size: 14px;
    font-weight: 500;
    color: #ffb36b;
    overflow-wrap: anywhere;
}

.dw-contact__card-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--dc-muted);
}

.dw-contact__card-arrow {
    margin-left: auto;
    font-size: 18px;
    color: #7f7890;
    transition: color var(--dc-fast) var(--dc-ease), transform var(--dc-fast) var(--dc-ease);
}

.dw-contact__card:hover .dw-contact__card-arrow {
    color: #fff;
    transform: translateX(2px);
}

.dw-contact__social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
}

.dw-contact__social-label {
    font-size: 13px;
    color: var(--dc-muted);
}

.dw-contact__social ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dw-contact__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dc-line);
    border-radius: 50%;
    font-size: 17px;
    color: #ddd8e6;
    transition: border-color var(--dc-fast) var(--dc-ease), color var(--dc-fast) var(--dc-ease);
}

.dw-contact__social a:hover {
    border-color: var(--dc-accent);
    color: #fff;
}

/* ---------- Form panel ---------- */

.dw-contact__main {
    padding: 44px 48px;
}

.dw-contact__form-title {
    margin: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--dc-text);
}

.dw-contact__form-lead {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--dc-muted);
}

.dw-contact__form-lead span[aria-hidden] {
    color: #ff9d3d;
}

.dw-contact__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 107, 125, .3);
    border-radius: 12px;
    background: rgba(255, 107, 125, .08);
    font-size: 13.5px;
    line-height: 1.5;
    color: #ffc2ca;
}

.dw-contact__alert i {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 17px;
}

.dw-contact__alert a {
    color: #fff;
    text-decoration: underline;
}

.dw-contact__form {
    margin-top: 26px;
}

.dw-contact__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.dw-contact .dw-cfield {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.dw-contact .dw-cfield__label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    color: #ddd8e6;
}

.dw-contact .dw-cfield__label span[aria-hidden] {
    color: #ff9d3d;
}

.dw-contact .dw-cfield__optional {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #7f7890;
}

.dw-contact .dw-cfield__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.dw-contact .dw-cfield__count {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #7f7890;
}

.dw-contact .dw-cfield__control {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    border: 1px solid var(--dc-line);
    border-radius: 12px;
    background: var(--dc-field);
    transition: border-color var(--dc-fast) var(--dc-ease), box-shadow var(--dc-fast) var(--dc-ease), background-color var(--dc-fast) var(--dc-ease);
}

.dw-contact .dw-cfield__control--area {
    height: auto;
}

.dw-contact .dw-cfield__control:hover {
    border-color: var(--dc-line-strong);
}

.dw-contact .dw-cfield__control:focus-within {
    border-color: rgba(255, 138, 0, .7);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 4px rgba(255, 138, 0, .14);
}

.dw-contact .dw-cfield__control.is-invalid {
    border-color: rgba(255, 107, 125, .65);
}

.dw-contact .dw-cfield__control.is-invalid:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 107, 125, .14);
}

.dw-contact .dw-cfield__icon {
    position: absolute;
    left: 15px;
    font-size: 18px;
    color: #8c859c;
    pointer-events: none;
    transition: color var(--dc-fast) var(--dc-ease);
}

.dw-contact .dw-cfield__control:focus-within .dw-cfield__icon {
    color: #ffb36b;
}

.dw-contact .dw-cfield__input {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 44px;
    border: 0;
    border-radius: inherit;
    outline: none;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--dc-text);
}

.dw-contact .dw-cfield__textarea {
    min-height: 150px;
    padding: 14px 16px;
    line-height: 1.6;
    resize: vertical;
}

.dw-contact .dw-cfield__input::placeholder {
    color: #6f6880;
}

.dw-contact .dw-cfield__input:-webkit-autofill {
    -webkit-text-fill-color: var(--dc-text);
    -webkit-box-shadow: 0 0 0 100px #1d1528 inset;
    caret-color: var(--dc-text);
}

.dw-contact .dw-cfield__error {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--dc-error);
}

.dw-contact .dw-cfield__error[hidden] {
    display: none;
}

/* ---------- Topic chips ---------- */

.dw-contact .dw-topics__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dw-contact .dw-topic {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.dw-contact .dw-topic input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.dw-contact .dw-topic span {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 15px;
    border: 1px solid var(--dc-line);
    border-radius: 99px;
    background: rgba(255, 255, 255, .03);
    font-size: 13.5px;
    font-weight: 500;
    color: #cfc9d9;
    transition: border-color var(--dc-fast) var(--dc-ease), background-color var(--dc-fast) var(--dc-ease), color var(--dc-fast) var(--dc-ease);
}

.dw-contact .dw-topic:hover span {
    border-color: var(--dc-line-strong);
    color: #fff;
}

.dw-contact .dw-topic input:checked + span {
    border-color: rgba(255, 138, 0, .7);
    background: linear-gradient(90deg, rgba(255, 138, 0, .18), rgba(255, 0, 110, .18));
    color: #fff;
}

.dw-contact .dw-topic input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(255, 138, 0, .45);
}

.dw-contact .dw-topics.is-invalid .dw-topic span {
    border-color: rgba(255, 107, 125, .45);
}

/* ---------- Honeypot ---------- */

.dw-contact__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Actions ---------- */

.dw-contact__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 6px;
}

.dw-contact__privacy {
    max-width: 300px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #8c859c;
}

.dw-contact__privacy a {
    color: #ffaa5c;
    text-decoration: none;
}

.dw-contact__privacy a:hover {
    color: #fff;
}

.dw-contact__submit {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    background: var(--dc-gradient);
    box-shadow: 0 12px 30px -12px rgba(255, 40, 100, .6);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform var(--dc-fast) var(--dc-ease), box-shadow var(--dc-fast) var(--dc-ease), filter var(--dc-fast) var(--dc-ease);
}

.dw-contact__submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 16px 36px -12px rgba(255, 40, 100, .75);
}

.dw-contact__submit:active {
    transform: translateY(1px);
}

.dw-contact__submit i {
    font-size: 17px;
}

.dw-contact__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dw-contact-spin .7s linear infinite;
}

.dw-contact__submit.is-loading {
    cursor: progress;
    filter: saturate(.85);
}

.dw-contact__submit.is-loading .dw-contact__spinner {
    display: block;
}

.dw-contact__submit.is-loading i {
    display: none;
}

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

/* ---------- Sent state ---------- */

.dw-contact__done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 0;
    text-align: center;
}

.dw-contact__done-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--dc-gradient);
    box-shadow: 0 16px 40px -14px rgba(255, 40, 100, .7);
    font-size: 30px;
    color: #fff;
}

.dw-contact__done-title {
    margin: 0;
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--dc-text);
}

.dw-contact__done-text {
    max-width: 380px;
    margin: 10px 0 26px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--dc-muted);
}

.dw-contact__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    border: 1px solid var(--dc-line-strong);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: border-color var(--dc-fast) var(--dc-ease), background-color var(--dc-fast) var(--dc-ease);
}

.dw-contact__secondary:hover {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

/* ---------- Focus ---------- */

.dw-contact a:focus-visible,
.dw-contact button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--dc-shell), 0 0 0 4px rgba(255, 138, 0, .9);
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    .dw-contact__aside {
        padding: 32px;
    }

    .dw-contact__main {
        padding: 36px;
    }
}

@media (max-width: 991.98px) {
    .dw-contact {
        padding: 112px 0 80px;
    }

    .dw-contact__shell {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Form first on smaller screens; the contact options follow. */
    .dw-contact__main {
        order: -1;
    }

    .dw-contact__aside {
        border-right: 0;
        border-top: 1px solid var(--dc-line);
    }
}

@media (max-width: 575.98px) {
    .dw-contact {
        padding: 100px 0 64px;
    }

    .dw-contact__head {
        margin-bottom: 32px;
    }

    .dw-contact__lead {
        font-size: 15.5px;
    }

    .dw-contact__shell {
        border-radius: 22px;
    }

    .dw-contact__main,
    .dw-contact__aside {
        padding: 26px 20px;
    }

    .dw-contact__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dw-contact .dw-cfield__input {
        font-size: 16px; /* stops iOS zooming into the field */
    }

    .dw-contact__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .dw-contact__privacy {
        max-width: none;
        text-align: center;
    }

    .dw-contact__submit {
        width: 100%;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .dw-contact *,
    .dw-contact *::before,
    .dw-contact *::after {
        transition-duration: 0s !important;
    }

    .dw-contact__card:hover {
        transform: none;
    }

    .dw-contact__spinner {
        animation-duration: 1.6s;
    }
}
