/* "Ask about this package" enquiry modal (Flook + Stay & Play). Palette matches stay-play.css / common.css. */

.pe-trigger {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 10px; min-height: 44px;
    border: 1px solid #31814F; border-radius: 5px; background: #fff;
    color: #0F5729; font-size: 16px; font-weight: 500; cursor: pointer;
    transition: background .2s, color .2s;
}
.pe-trigger:hover { background: #E8F3EC; color: #0F5729; }

.pe-modal .modal-content {
    border: 0; border-radius: 14px; overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 87, 41, .25);
}

/* Keeps the whole modal inside the viewport: if the screen is too short, the body scrolls, not the page. */
.pe-modal .modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }

/* Header band */
.pe-head {
    position: relative; flex: 0 0 auto; padding: 16px 56px 14px 28px; color: #fff;
    background: linear-gradient(90deg, #0F5729 0%, #31814F 100%);
}
.pe-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px;
    font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C9E8C9;
}
.pe-title { margin: 0 0 2px; font-size: 20px; line-height: 1.25; font-weight: 700; color: #fff; }
.pe-sub { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.pe-head .btn-close {
    position: absolute; top: 14px; right: 14px; opacity: 1; padding: 8px;
    filter: invert(1) grayscale(1) brightness(2);
}

/* Body */
.pe-body { flex: 1 1 auto; overflow-y: auto; padding: 18px 28px 20px; background: #fff; }

.pe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.pe-field { display: flex; flex-direction: column; min-width: 0; }
.pe-field.pe-span-2 { grid-column: span 2; }
.pe-field.pe-full { grid-column: 1 / -1; }

.pe-label { margin-bottom: 5px; font-size: 14px; font-weight: 600; line-height: 1.2; color: #1F2E24; }
.pe-label .pe-req { color: #C0392B; margin-left: 2px; }
.pe-label .pe-opt { font-weight: 400; color: #5C8A6B; font-size: 13px; }

.pe-modal .pe-input {
    width: 100%; min-height: 44px; padding: 10px 14px;
    font-size: 15px; line-height: 22px; color: #1F2E24;
    background: #F8FBF9; border: 1px solid #DCE5DF; border-radius: 6px; outline: 0;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.pe-modal .pe-input::placeholder { color: #9AB5A3; }
.pe-modal .pe-input:hover { border-color: #B9CFC0; }
.pe-modal .pe-input:focus { background: #fff; border-color: #31814F; box-shadow: 0 0 0 3px rgba(49, 129, 79, .18); }
.pe-modal .pe-input.is-invalid { background: #FFF8F7; border-color: #C0392B; box-shadow: none; }
.pe-modal textarea.pe-input { min-height: 74px; resize: none; }
.pe-modal select.pe-input { padding-right: 36px; cursor: pointer; }

.pe-error { margin-top: 5px; font-size: 13px; line-height: 18px; color: #C0392B; }
.pe-error:empty { display: none; }

.pe-foot-row { display: flex; justify-content: flex-end; margin-top: 4px; }
.pe-count { font-size: 12px; color: #5C8A6B; }

.pe-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.pe-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    flex: 0 0 auto; min-width: 200px; min-height: 46px;
}
.pe-submit[disabled] { opacity: .7; cursor: wait; }
.pe-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: #5C8A6B; }
.pe-note .bi { margin-right: 4px; }

.pe-alert { margin-bottom: 12px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.4; background: #FDECEA; border: 1px solid #F3C4BE; color: #8E281D; }
.pe-alert:empty { display: none; }

/* Success state */
.pe-success { display: none; padding: 34px 10px 12px; text-align: center; }
.pe-success .pe-tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%;
    background: #E8F3EC; color: #0F5729; font-size: 32px;
}
.pe-success h5 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #1F2E24; }
.pe-success p { margin: 0 auto 22px; max-width: 320px; font-size: 15px; line-height: 1.5; color: #5C8A6B; }
.pe-success .common-btn { display: inline-flex; min-width: 140px; }

/* Tablet and down: two columns. Mobile: one column; the body scrolls inside the modal if it has to. */
@media (max-width: 767px) {
    .pe-grid { grid-template-columns: 1fr 1fr; }
    .pe-field.pe-span-2 { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .pe-head { padding: 14px 48px 12px 18px; }
    .pe-title { font-size: 18px; }
    .pe-body { padding: 16px 18px 18px; }
    .pe-grid { grid-template-columns: 1fr; }
    .pe-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .pe-note { text-align: center; }
    .pe-submit { width: 100%; }
}
