/**
 * Nečiūnas NT Elementor Contact widget.
 */

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

.neciunasnt-contact {
    --neciunasnt-contact-cream: var(--color-cream, #f2eee3);
    --neciunasnt-contact-muted: #c4bdb5;

    width: 100%;
    overflow: hidden;
    padding-block: clamp(88px, 8.34vw, 120px);
    color: var(--neciunasnt-contact-cream);
    background: linear-gradient(180deg, #391214 0%, #160f0c 100%);
    font-family: var(--font-primary, "TT Firs Neue", Arial, sans-serif);
}

.neciunasnt-contact__inner {
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
}

.neciunasnt-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 480px);
}

.neciunasnt-contact__grid--with-form {
    grid-template-columns: minmax(0, 437px) minmax(520px, 1fr);
    align-items: start;
    gap: clamp(48px, 5.56vw, 80px);
}

.neciunasnt-contact__content {
    min-width: 0;
}

.neciunasnt-contact__heading {
    display: grid;
    gap: 30px;
    margin: 0 0 30px;
}

.neciunasnt-contact__eyebrow,
.neciunasnt-contact__title,
.neciunasnt-contact__description p {
    margin: 0;
}

.neciunasnt-contact__eyebrow {
    color: var(--neciunasnt-contact-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.neciunasnt-contact__title {
    color: #fff;
    font-size: clamp(34px, 3.1vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-transform: uppercase;
}

.neciunasnt-contact__description {
    max-width: 430px;
    color: var(--neciunasnt-contact-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}

.neciunasnt-contact__description p + p {
    margin-top: 12px;
}

.neciunasnt-contact__details {
    display: grid;
    gap: 24px;
    margin-top: 52px;
}

.neciunasnt-contact__detail {
    display: grid;
    gap: 8px;
}

.neciunasnt-contact__detail-label {
    color: var(--neciunasnt-contact-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.neciunasnt-contact__detail-value {
    width: fit-content;
    max-width: 100%;
    color: var(--neciunasnt-contact-cream);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-decoration: none;
}

a.neciunasnt-contact__detail-value:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

a.neciunasnt-contact__detail-value:focus-visible {
    outline: 2px solid var(--neciunasnt-contact-cream);
    outline-offset: 4px;
}

.neciunasnt-contact__form-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--neciunasnt-contact-cream);
    border-radius: 24px;
    background: rgb(0 0 0 / 55%);
}

.neciunasnt-contact__form-card .wpcf7,
.neciunasnt-contact__form-card .wpcf7-form {
    width: 100%;
    margin: 0;
}

.neciunasnt-contact__form-card .wpcf7-form {
    display: grid;
    gap: 16px;
}

.neciunasnt-contact__form-card .wpcf7-form > p {
    display: grid;
    gap: 6px;
    margin: 0;
}

.neciunasnt-contact__form-card .wpcf7-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--neciunasnt-contact-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.neciunasnt-contact__form-card .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.neciunasnt-contact__form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.neciunasnt-contact__form-card select,
.neciunasnt-contact__form-card textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid rgb(242 238 227 / 45%);
    border-radius: 10px;
    color: var(--neciunasnt-contact-cream);
    background: rgb(22 15 12 / 24%);
    box-shadow: none;
    font: 400 14px/1.45 var(--font-primary, "TT Firs Neue", Arial, sans-serif);
}

.neciunasnt-contact__form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.neciunasnt-contact__form-card select {
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
}

.neciunasnt-contact__form-card textarea {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    padding: 14px 16px;
    resize: none;
}

.neciunasnt-contact__form-card input::placeholder,
.neciunasnt-contact__form-card textarea::placeholder {
    color: rgb(196 189 181 / 75%);
    opacity: 1;
}

.neciunasnt-contact__form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.neciunasnt-contact__form-card select:focus,
.neciunasnt-contact__form-card textarea:focus {
    border-color: rgb(242 238 227 / 92%);
    outline: 2px solid rgb(242 238 227 / 18%);
    outline-offset: 2px;
}

.neciunasnt-contact__form-card .wpcf7-acceptance .wpcf7-list-item,
.neciunasnt-contact__form-card .wpcf7-checkbox .wpcf7-list-item {
    margin: 0;
}

.neciunasnt-contact__form-card .wpcf7-acceptance label,
.neciunasnt-contact__form-card .wpcf7-checkbox label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--neciunasnt-contact-muted);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
    cursor: pointer;
}

.neciunasnt-contact__form-card input[type="checkbox"] {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    border: 1px solid rgb(242 238 227 / 60%);
    border-radius: 4px;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.neciunasnt-contact__form-card input[type="checkbox"]::after {
    position: absolute;
    width: 5px;
    height: 9px;
    top: 2px;
    left: 5px;
    border-right: 2px solid #391214;
    border-bottom: 2px solid #391214;
    content: "";
    opacity: 0;
    transform: rotate(45deg);
}

.neciunasnt-contact__form-card input[type="checkbox"]:checked {
    border-color: var(--neciunasnt-contact-cream);
    background: var(--neciunasnt-contact-cream);
}

.neciunasnt-contact__form-card input[type="checkbox"]:checked::after {
    opacity: 1;
}

.neciunasnt-contact__form-card input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--neciunasnt-contact-cream);
    outline-offset: 3px;
}

.neciunasnt-contact__form-card .wpcf7-list-item-label a,
.neciunasnt-contact__form-card .wpcf7-form a {
    color: var(--neciunasnt-contact-cream);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.neciunasnt-contact__form-card .wpcf7-list-item-label a:hover,
.neciunasnt-contact__form-card .wpcf7-form a:hover {
    color: #fff;
}

.neciunasnt-contact__form-card .wpcf7-list-item-label a:focus-visible,
.neciunasnt-contact__form-card .wpcf7-form a:focus-visible {
    outline: 2px solid var(--neciunasnt-contact-cream);
    outline-offset: 3px;
}

.neciunasnt-contact__form-card .wpcf7-submit {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 36px;
    border: 1px solid var(--neciunasnt-contact-cream);
    border-radius: 999px;
    color: #391214;
    background: var(--neciunasnt-contact-cream);
    box-shadow: none;
    font: 600 13px/1.3 var(--font-primary, "TT Firs Neue", Arial, sans-serif);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.neciunasnt-contact__form-card .wpcf7-submit:hover,
.neciunasnt-contact__form-card .wpcf7-submit:focus,
.neciunasnt-contact__form-card .wpcf7-submit:active {
    border-color: #fff;
    color: #391214;
    background: #fff;
}

.neciunasnt-contact__form-card .wpcf7-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.neciunasnt-contact__form-card .wpcf7-submit:disabled {
    opacity: 0.58;
    cursor: wait;
}

.neciunasnt-contact__form-card .wpcf7-spinner {
    display: block;
    margin: 8px auto 0;
    background-color: rgb(242 238 227 / 35%);
}

.neciunasnt-contact__form-card .wpcf7-not-valid {
    border-color: #c46a6a !important;
}

.neciunasnt-contact__form-card .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #dfaaaa;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.neciunasnt-contact__form-card .wpcf7-response-output {
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid rgb(242 238 227 / 45%) !important;
    border-radius: 12px;
    color: var(--neciunasnt-contact-cream);
    background: rgb(242 238 227 / 8%);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.neciunasnt-contact__form-card form.sent .wpcf7-response-output {
    border-color: rgb(126 164 132 / 65%) !important;
    color: #dde8df;
    background: rgb(74 104 78 / 14%);
}

.neciunasnt-contact__form-card form.invalid .wpcf7-response-output,
.neciunasnt-contact__form-card form.failed .wpcf7-response-output,
.neciunasnt-contact__form-card form.aborted .wpcf7-response-output,
.neciunasnt-contact__form-card form.spam .wpcf7-response-output,
.neciunasnt-contact__form-card form.unaccepted .wpcf7-response-output {
    border-color: rgb(190 101 101 / 65%) !important;
    color: #f1d9d9;
    background: rgb(125 42 42 / 14%);
}

.neciunasnt-contact__editor-notice {
    margin: 0;
    color: var(--neciunasnt-contact-muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .neciunasnt-contact__grid--with-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 64px;
    }

    .neciunasnt-contact__content {
        max-width: 560px;
    }
}

@media (max-width: 767px) {
    .neciunasnt-contact {
        padding-block: 64px;
    }

    .neciunasnt-contact__inner {
        width: min(calc(100% - 32px), 1240px);
    }

    .neciunasnt-contact__heading {
        gap: 20px;
        margin-bottom: 24px;
    }

    .neciunasnt-contact__title {
        font-size: clamp(30px, 10vw, 36px);
    }

    .neciunasnt-contact__details {
        gap: 20px;
        margin-top: 40px;
    }

    .neciunasnt-contact__grid--with-form {
        gap: 48px;
    }

    .neciunasnt-contact__form-card {
        padding: 22px 18px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neciunasnt-contact__form-card .wpcf7-submit {
        transition: none;
    }
}
