/* =========================================================
   Tourify Enquiry Forms — validation, phone & country UI
   ========================================================= */

/* Package enquiry form layout */
.tour-inquiry-wrapper {
    color: #143c4c;
}

.inquiry-hero {
    min-height: 365px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background-size: cover;
    background-position: center;
}

.inquiry-hero .brand {
    padding: 48px 36px 0;
}

.inquiry-hero h1,
.inquiry-hero p {
    position: relative;
    z-index: 1;
    width: 55%;
    margin-left: 36px;
}

.inquiry-hero h1 {
    margin-top: 44px;
    margin-bottom: 18px;
    color: #0c3f4c;
    font-size: 40px;
    line-height: 1.15;
}

.inquiry-hero p {
    color: #344c5c;
    font-size: 16px;
    line-height: 1.75;
}

.inquiry-form {
    position: relative;
    padding: 35px 36px 36px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #edf2f4;
    border-radius: 12px;
    box-shadow: 0 7px 30px rgba(26, 74, 91, .08);
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-heading h2 {
    margin: 0;
    color: #09616a;
    font-size: 25px;
}

.heading-line {
    height: 1px;
    margin: 16px 0 24px;
    background: #d6dfe5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #123f50;
    font-size: 15px;
    font-weight: 600;
}

.form-group label span {
    color: #ed3d3d;
}

.form-group input,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #d6dfe5;
    border-radius: 7px;
    background: #fff;
    color: #344d60;
    font-size: 15px;
}

.form-group input {
    height: 52px;
    padding: 0 14px;
}

.form-group textarea {
    min-height: 125px;
    padding: 14px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.benefits-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 28px -36px 0;
    padding: 28px 36px;
    background: #f5fbfc;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.benefit-icon {
    flex: 0 0 48px;
    color: #09616a;
    font-size: 24px;
    text-align: center;
}

.benefit-item h3,
.benefit-item p {
    margin: 0;
}

.benefit-item h3 {
    color: #164353;
    font-size: 13px;
}

.benefit-item p {
    color: #4c6473;
    font-size: 12px;
    line-height: 1.55;
}

.submit-section {
    margin-top: 28px;
    text-align: center;
}

.submit-button {
    min-width: 220px;
    min-height: 52px;
    padding: 12px 24px;
    border: 0;
    border-radius: 6px;
    background: #079b98;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.privacy-note {
    color: #617488;
    font-size: 12px;
    margin-top: 20px;
}

/* Honeypot — hidden from real visitors, still reachable by simple bots */
.tourify-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Inline field errors */
.field-error {
    display: none;
    margin-top: 6px;
    color: #d1373a;
    font-size: 13px;
    line-height: 1.4;
}

.field-error.is-visible {
    display: block;
}

/* Invalid field highlighting (applies to plain inputs, selects, textareas,
   and the intl-tel-input wrapper) */
.tourify-field-invalid input,
.tourify-field-invalid select,
.tourify-field-invalid textarea,
.tourify-field-invalid .iti {
    border-color: #d1373a !important;
    box-shadow: 0 0 0 3px rgba(209, 55, 58, .08) !important;
}

.tourify-field-valid input,
.tourify-field-valid select,
.tourify-field-valid textarea {
    border-color: #1a9a6a !important;
}

/* Phone field — let intl-tel-input own the width */
.tourify-phone-field {
    position: relative;
}

.tourify-phone-field .iti {
    display: block;
    width: 100%;
    height: 52px;
    border: 1px solid #d6dfe5;
    border-radius: 7px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tourify-phone-field input {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #344d60;
    font-size: 15px;
    outline: none;
}

.tourify-phone-field:focus-within .iti {
    border-color: #079b98;
    box-shadow: 0 0 0 3px rgba(7, 155, 152, .08);
}

.tourify-phone-field .iti__country-list {
    z-index: 40;
}

/* Country autocomplete */
.tourify-country-field {
    position: relative;
}

.tourify-country-dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d6dfe5;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(20, 60, 76, .12);
    padding: 6px 0;
}

.tourify-country-dropdown[hidden] {
    display: none;
}

.tourify-country-option {
    padding: 9px 16px;
    font-size: 14px;
    color: #344d60;
    cursor: pointer;
}

.tourify-country-option:hover,
.tourify-country-option.is-active {
    background: #eef7f6;
    color: #09616a;
}

.tourify-country-empty {
    padding: 9px 16px;
    font-size: 13px;
    color: #93a4b7;
}

/* Submission feedback banner (success/error) */
.tourify-enquiry-feedback {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.tourify-enquiry-feedback[hidden] {
    display: none;
}

.tourify-enquiry-feedback.is-success {
    background: #eafaf1;
    color: #0a7a4a;
    border: 1px solid #bfe8d3;
}

.tourify-enquiry-feedback.is-error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

/* Disabled submit state while an AJAX request is in flight */
button[type="submit"][aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}



/* =========================================================
   Input Icons
   ========================================================= */

.input-wrapper {
    position: relative;
}

/* Icon inside input */
.input-wrapper.input-icon .field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color: #09616a;
    pointer-events: none;
}

/* WordPress Dashicons */
.input-wrapper.input-icon .field-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
}

/* Give space for the icon */
.input-wrapper.input-icon input {
    padding-left: 46px;
}

/* Country autocomplete input */
.tourify-country-field input {
    padding-left: 46px;
}

/* Phone field doesn't need this because intl-tel-input
   handles its own country/flag area */
.tourify-phone-field input {
    padding-left: 14px;
}

/* Readonly fields & tamper-proof price input */
.input-wrapper.input-icon input[readonly],
.tourify-readonly-field {
    background-color: #f4f7f9 !important;
    color: #0c3f4c !important;
    font-weight: 600 !important;
    cursor: default !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Tamper-proof price display badge */
.tourify-price-display {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    padding: 0 14px 0 46px;
    display: flex;
    align-items: center;
    border: 1px solid #d6dfe5;
    border-radius: 7px;
    background-color: #f4f7f9;
    color: #0c3f4c;
    font-size: 15px;
    font-weight: 700;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* Focus effect */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #079b98;
    box-shadow: 0 0 0 3px rgba(7, 155, 152, 0.08);
}

/* Keep icon color when input is focused */
.input-wrapper.input-icon:focus-within .field-icon {
    color: #079b98;
}

@media (max-width: 800px) {

    .form-columns,
    .benefits-section {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .inquiry-hero h1,
    .inquiry-hero p {
        width: auto;
        margin-right: 20px;
        margin-left: 20px;
    }
}

@media (max-width: 600px) {
    .inquiry-hero {
        min-height: auto;
        padding-bottom: 24px;
    }

    .inquiry-hero .brand {
        padding: 24px 16px 0;
    }

    .inquiry-hero h1,
    .inquiry-hero p {
        margin-right: 16px;
        margin-left: 16px;
    }

    .inquiry-hero h1 {
        font-size: clamp(22px, 5.5vw, 30px);
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .inquiry-hero p {
        font-size: 14px;
        line-height: 1.6;
    }

    .inquiry-form {
        padding: 20px 16px;
    }

    .benefits-section {
        margin-right: -16px;
        margin-left: -16px;
        padding: 20px 16px;
        gap: 16px;
    }

    .submit-button {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   Tourify Enquiry Response Popup Modal
   ========================================================= */
.tourify-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 25, 34, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.tourify-popup-overlay.is-active {
    opacity: 1;
}

.tourify-popup-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    padding: 38px 30px 34px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 20, 43, 0.28);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.tourify-popup-overlay.is-active .tourify-popup-card {
    transform: scale(1) translateY(0);
}

.tourify-popup-icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tourify-popup-icon-wrap.is-success {
    background: #e6f7f5;
    color: #079b98;
    box-shadow: 0 0 0 8px rgba(7, 155, 152, 0.1);
}

.tourify-popup-icon-wrap.is-error {
    background: #fdecea;
    color: #d1373a;
    box-shadow: 0 0 0 8px rgba(209, 55, 58, 0.1);
}

.tourify-popup-icon-wrap svg {
    width: 36px;
    height: 36px;
    display: block;
}

.tourify-popup-title {
    margin: 0 0 12px;
    color: #0c3f4c;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.tourify-popup-message {
    margin: 0 0 28px;
    color: #4c6578;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.tourify-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 48px;
    padding: 0 32px;
    background: #079b98;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(7, 155, 152, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tourify-popup-btn:hover {
    background: #078582;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(7, 155, 152, 0.35);
}

.tourify-popup-btn:active {
    transform: translateY(0);
}

.tourify-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #8fa0ac;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.tourify-popup-close:hover {
    color: #123f50;
    background: #f0f4f7;
}

@media (max-width: 600px) {
    .tourify-popup-card {
        padding: 30px 20px 26px;
        border-radius: 12px;
    }

    .tourify-popup-title {
        font-size: 20px;
    }

    .tourify-popup-message {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .tourify-popup-btn {
        width: 100%;
        min-width: 0;
    }
}
