/* Hero: keep background parallax from stealing clicks; CTA must stay on top */
.wpo-hero-slider .slide-inner {
    display: block;
}

.wpo-hero-slider .slide-parallax-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    pointer-events: none;
}

.wpo-hero-slider .slide-content-layer {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    pointer-events: auto;
}

/* Swiper parallax transforms on titles can paint over the button — don't let them capture clicks */
.wpo-hero-slider .slide-title,
.wpo-hero-slider .slide-sub-title,
.wpo-hero-slider .slide-text {
    pointer-events: none;
}

.wpo-hero-slider .slide-btn {
    position: relative;
    z-index: 50;
    pointer-events: auto;
    isolation: isolate;
}

.wpo-hero-slider .slide-btn .theme-btn {
    position: relative;
    z-index: 51;
    cursor: pointer;
    border: 0;
    font-family: inherit;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/*
 * Swiper prev/next sit as siblings above slides (z-index ~10) and block the left-side CTA.
 * Pass clicks through except on the visible arrow control.
 */
.wpo-hero-slider .swiper-button-prev,
.wpo-hero-slider .swiper-button-next {
    pointer-events: none;
    z-index: 4;
}

.wpo-hero-slider .swiper-button-prev::before,
.wpo-hero-slider .swiper-button-next::before {
    pointer-events: auto;
    cursor: pointer;
}

.wpo-hero-slider .swiper-pagination {
    pointer-events: none;
}

.wpo-hero-slider .swiper-pagination-bullet {
    pointer-events: auto;
    cursor: pointer;
}

/* Contact popup — matches site dark theme + gold accent */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000002;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.contact-modal-open {
    overflow: hidden;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
}

.contact-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: none;
    overflow: visible;
    margin: auto 0;
    background: linear-gradient(165deg, #1a1a1a 0%, #121212 100%);
    border: 1px solid #2e2e2e;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.contact-modal__dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #c9a012, #f5c518);
}

.contact-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 2;
}

.contact-modal__close:hover {
    color: #fff;
}

.contact-modal__head {
    padding-right: 28px;
    margin-bottom: 22px;
}

.contact-modal__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f5c518;
    margin-bottom: 8px;
}

.contact-modal__title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.contact-modal__subtitle {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #9ca3af;
}

.contact-modal__quick {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-modal__quick a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-modal__quick a:hover {
    color: #f5c518;
}

.contact-modal__quick .fi::before,
.contact-modal__quick .fa {
    color: #f5c518;
    font-size: 1rem;
}

.contact-modal__form-wrap {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 22px 20px 18px;
    overflow: visible;
}

.contact-modal__form.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.contact-modal__form > .field-half,
.contact-modal__form > .fullwidth,
.contact-modal__form > .submit-area,
.contact-modal__form > .clearfix.error-handling-messages {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

.contact-modal__form > .fullwidth,
.contact-modal__form > .submit-area,
.contact-modal__form > .clearfix.error-handling-messages {
    grid-column: 1 / -1;
}

.contact-modal__form .form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    line-height: 48px;
    background: #1a1a1a !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 8px;
    color: #f0f0f0 !important;
    font-size: 14px;
    box-shadow: none !important;
}

.contact-modal__form .form-control:focus {
    border-color: #f5c518 !important;
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.12) !important;
}

.contact-modal__form textarea.form-control {
    min-height: 120px;
    height: auto;
    line-height: 1.5;
    padding: 12px 16px;
    resize: vertical;
}

.contact-modal__form .form-control::placeholder {
    color: #888;
}

.contact-modal__form {
    overflow: visible;
}

.contact-modal__form .field-select {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.contact-modal__form .field-select:has(.nice-select.open) {
    z-index: 100;
}

.contact-modal__form .field-select select.contact-service-select-modal {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.contact-modal__form .field-select .nice-select {
    width: 100%;
    float: none;
    display: flex;
    align-items: center;
    height: 48px;
    background-color: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #f0f0f0;
    font-size: 14px;
    padding: 0 40px 0 16px;
}

.contact-modal__form .field-select .nice-select:hover,
.contact-modal__form .field-select .nice-select.open,
.contact-modal__form .field-select .nice-select:focus {
    border-color: #f5c518;
}

.contact-modal__form .field-select .nice-select .list {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    margin-top: 4px;
    max-height: min(220px, 38vh);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 100010;
    pointer-events: auto;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.contact-modal__form .field-select .nice-select.open .list {
    opacity: 1;
    pointer-events: auto;
    overscroll-behavior: contain;
}

.contact-modal__form .field-select .nice-select .option {
    color: #e5e7eb;
    cursor: pointer;
    pointer-events: auto;
    min-height: 40px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    padding: 8px 16px;
}

.contact-modal__form .field-select .nice-select .option:hover,
.contact-modal__form .field-select .nice-select .option.focus,
.contact-modal__form .field-select .nice-select .option.selected.focus {
    background: rgba(245, 197, 24, 0.12);
    color: #f5c518;
}

.contact-modal__form .field-select .nice-select .option.disabled {
    display: none !important;
}

.contact-modal__form .submit-area {
    text-align: center;
    padding-top: 4px;
    position: relative;
}

.contact-modal__submit.theme-btn-s2 {
    min-width: 180px;
    border-radius: 50px;
    padding: 12px 32px;
    background: #f5c518;
    color: #1a1a1a;
    border: none;
    font-weight: 600;
}

.contact-modal__submit.theme-btn-s2:hover {
    background: #e6b800;
    color: #111;
}

.contact-modal__form #loader-modal {
    display: none;
}

.contact-modal__loader {
    display: none;
    position: absolute;
    right: 50%;
    transform: translateX(120px);
    top: 50%;
    margin-top: -12px;
}

.contact-modal__loader i {
    font-size: 22px;
    color: #f5c518;
    animation: contact-modal-spin 0.8s linear infinite;
}

@keyframes contact-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-modal__alert {
    display: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    text-align: center;
    margin-top: 4px;
}

.contact-modal__alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.contact-modal__alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.contact-modal__footnote {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.contact-modal__footnote a {
    color: #f5c518;
    text-decoration: none;
    font-weight: 600;
}

.contact-modal__footnote a:hover {
    text-decoration: underline;
}

label.error {
    color: #f87171;
    font-size: 0.78rem;
    margin-top: 4px;
    display: block;
}

@media (max-width: 575px) {
    .contact-modal__dialog {
        padding: 26px 18px 20px;
    }

    .contact-modal__form.contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-modal__quick {
        flex-direction: column;
        gap: 8px;
    }
}
