
/* ==========================================
   DD TOURS — TRIP ENQUIRY POPUP
========================================== */

.trip-popup {
    --popup-navy: #001524;
    --popup-gold: #DDB57A;

    position: fixed;
    inset: 0;
    z-index: 20000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.trip-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.trip-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 12, 23, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.trip-popup__dialog {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 0.78fr 1.22fr;

    width: 100%;
    max-width: 990px;
    max-height: min(850px, 92vh);
    overflow: auto;

    background: #ffffff;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.28);

    transform: translateY(18px) scale(0.99);
    transition: transform 0.25s ease;
}

.trip-popup.is-open .trip-popup__dialog {
    transform: translateY(0) scale(1);
}

.trip-popup__close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    border: 1px solid #e7e7e7;
    border-radius: 50%;

    background: #ffffff;
    color: var(--popup-navy);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.trip-popup__close:hover {
    background: var(--popup-navy);
    color: #ffffff;
}

/* Left visual panel */

.trip-popup__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 600px;
    padding: 42px 34px;

    overflow: hidden;
    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(0, 21, 36, 0.45),
            rgba(0, 21, 36, 0.92)
        ),
        url("../../images/contact/contact-hero.jpg") center / cover no-repeat;
}

.trip-popup__eyebrow {
    color: var(--popup-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.trip-popup__visual-content {
    margin: auto 0;
    padding: 35px 0;
}

.trip-popup__small-line {
    display: block;
    width: 43px;
    height: 2px;
    margin-bottom: 24px;
    background: var(--popup-gold);
}

.trip-popup__visual-content h2 {
    margin: 0;
    color: #ffffff;

    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(32px, 3.5vw, 43px);
    font-weight: 400;
    line-height: 1.18;
}

.trip-popup__visual-content p {
    max-width: 270px;
    margin: 19px 0 0;

    color: #d7dfe3;
    font-size: 13px;
    line-height: 1.9;
}

.trip-popup__visual-bottom {
    color: #cbd3d8;
    font-size: 9px;
    letter-spacing: 1.5px;
}

/* Right form panel */

.trip-popup__content {
    min-width: 0;
    padding: 43px 38px 28px;
}

.trip-popup__heading {
    margin-bottom: 25px;
    padding-right: 22px;
}

.trip-popup__kicker {
    color: #9b7848;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.trip-popup__heading h2 {
    margin: 9px 0 6px;

    color: var(--popup-navy);
    font-family: var(--font-heading, Georgia, serif);
    font-size: 33px;
    font-weight: 400;
}

.trip-popup__heading p {
    margin: 0;
    color: #727b80;
    font-size: 12px;
    line-height: 1.8;
}

/* Form grid */

.trip-popup__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 17px;
}

.trip-popup__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 7px;
}

.trip-popup__field--full {
    grid-column: 1 / -1;
}

.trip-popup__field > label:not(.trip-popup__consent) {
    color: #39434a;
    font-size: 11px;
    font-weight: 600;
}

.trip-popup__field > label > span {
    color: #a37b42;
}

.trip-popup__field input:not([type="checkbox"]),
.trip-popup__field select,
.trip-popup__field textarea {
    display: block;
    width: 100%;
    min-width: 0;

    border: 1px solid #e1e5e7;
    border-radius: 2px;

    background: #ffffff;
    color: var(--popup-navy);
    font-family: inherit;
    font-size: 12px;

    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trip-popup__field input:not([type="checkbox"]),
.trip-popup__field select {
    height: 41px;
    padding: 0 10px;
}

.trip-popup__field textarea {
    min-height: 77px;
    padding: 11px 10px;
    line-height: 1.6;
    resize: vertical;
}

.trip-popup__field input::placeholder,
.trip-popup__field textarea::placeholder {
    color: #a1a8ad;
}

.trip-popup__field input:focus,
.trip-popup__field select:focus,
.trip-popup__field textarea:focus {
    border-color: var(--popup-gold);
    box-shadow: 0 0 0 3px rgba(221, 181, 122, 0.15);
}

.trip-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #737c81;
    font-size: 11px;
    line-height: 1.7;
}

.trip-popup__consent input {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin: 2px 0 0;
    accent-color: var(--popup-navy);
}

.trip-popup__submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    width: 100%;
    min-height: 46px;
    padding: 0 16px;

    border: 1px solid var(--popup-navy);
    border-radius: 2px;

    background: var(--popup-navy);
    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.trip-popup__submit span {
    color: var(--popup-gold);
    font-size: 17px;
}

.trip-popup__submit:hover {
    border-color: var(--popup-gold);
    background: var(--popup-gold);
    color: var(--popup-navy);
}

.trip-popup__submit:hover span {
    color: var(--popup-navy);
}

.trip-popup__note {
    margin: 9px 0 0;
    color: #899197;
    font-size: 10px;
}

/* Prevent page scrolling while open */

body.trip-popup-open {
    overflow: hidden;
}

/* Tablet and smaller screens */

@media (max-width: 760px) {
    .trip-popup {
        padding: 14px;
    }

    .trip-popup__dialog {
        display: block;
        max-width: 560px;
        max-height: 94vh;
    }

    .trip-popup__visual {
        min-height: 170px;
        padding: 25px 26px;
    }

    .trip-popup__visual-content {
        margin: 25px 0 10px;
        padding: 0;
    }

    .trip-popup__visual-content h2 {
        font-size: 31px;
    }

    .trip-popup__visual-content p {
        max-width: 400px;
        margin-top: 10px;
    }

    .trip-popup__visual-bottom {
        margin-top: 20px;
    }

    .trip-popup__content {
        padding: 29px 26px 25px;
    }

    .trip-popup__heading h2 {
        font-size: 29px;
    }

    .trip-popup__close {
        position: sticky;
        float: right;
        top: 10px;
        margin-bottom: -39px;
    }
}

@media (max-width: 420px) {
    .trip-popup__form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trip-popup__field--full {
        grid-column: auto;
    }

    .trip-popup__content {
        padding: 28px 20px 23px;
    }

    .trip-popup__visual {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trip-popup,
    .trip-popup__dialog,
    .trip-popup__close,
    .trip-popup__submit {
        transition: none;
    }
}
