/* =========================================================
   DBNatureHub Booking – Popup Styles
   ========================================================= */

/* ── Open button ─────────────────────────────────────────── */
.dbnb-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2d6a4f, #52b788);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(45,106,79,.35);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}

.dbnb-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45,106,79,.45);
}

.dbnb-open-btn:active { transform: translateY(0); }

.dbnb-btn-icon { font-size: 18px; }

/* ── Overlay ─────────────────────────────────────────────── */
.dbnb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 20, .65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.dbnb-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── Modal card ──────────────────────────────────────────── */
.dbnb-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 580px;
    overflow: visible;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    transform: translateY(40px) scale(.97);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    position: relative;
}

.dbnb-overlay.is-open .dbnb-modal {
    transform: translateY(0) scale(1);
}

/* ── Modal header ────────────────────────────────────────── */
.dbnb-modal__header {
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #52b788 100%);
    padding: 24px 28px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

/* Decorative leaf shapes */
.dbnb-modal__leaf {
    position: absolute;
    border-radius: 50% 0 50% 0;
    opacity: .12;
}
.dbnb-modal__leaf--1 {
    width: 120px; height: 120px;
    background: #fff;
    top: -30px; left: -30px;
    transform: rotate(25deg);
}
.dbnb-modal__leaf--2 {
    width: 80px; height: 80px;
    background: #fff;
    bottom: -20px; right: 40px;
    transform: rotate(-15deg);
}
.dbnb-modal__leaf--3 {
    width: 60px; height: 60px;
    background: #fff;
    top: 10px; right: -10px;
    transform: rotate(45deg);
}

.dbnb-modal__header-content { position: relative; z-index: 1; }

.dbnb-modal__icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

.dbnb-modal__title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.dbnb-modal__subtitle {
    margin: 0;
    color: rgba(255,255,255,.8);
    font-size: 12px;
}

/* Close button */
.dbnb-close {
    position: absolute;
    top: 14px; right: 16px;
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    z-index: 2;
}
.dbnb-close:hover { background: rgba(255,255,255,.3); }

/* ── Modal body ──────────────────────────────────────────── */
.dbnb-modal__body {
    padding: 20px 28px 20px;
}

/* ── Fieldsets ───────────────────────────────────────────── */
.dbnb-fieldset {
    border: none;
    margin: 0 0 14px;
    padding: 0;
}

.dbnb-fieldset__legend {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #2d6a4f;
    margin-bottom: 12px;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid #d8f3dc;
    padding-bottom: 6px;
}

/* ── Rows & fields ───────────────────────────────────────── */
.dbnb-row { margin-bottom: 8px; }

.dbnb-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .dbnb-row--2 { grid-template-columns: 1fr; }
    .dbnb-modal__body { padding: 20px 16px 18px; }
    .dbnb-modal__header { padding: 28px 16px 22px; }
}

.dbnb-field { display: flex; flex-direction: column; }

.dbnb-field label {
    font-size: 12px;
    font-weight: 700;
    color: #1b4332;
    margin-bottom: 5px;
    letter-spacing: .2px;
}

.dbnb-field label span { color: #e63946; }

.dbnb-field input,
.dbnb-field select,
.dbnb-field textarea {
    border: 1.5px solid #b7e4c7;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: #1b4332;
    background: #f8fffe;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.dbnb-field input::placeholder,
.dbnb-field textarea::placeholder { color: #aaa; }

.dbnb-field input:focus,
.dbnb-field select:focus,
.dbnb-field textarea:focus {
    border-color: #52b788;
    box-shadow: 0 0 0 3px rgba(82,183,136,.18);
    background: #fff;
}

.dbnb-field input.is-invalid,
.dbnb-field select.is-invalid,
.dbnb-field textarea.is-invalid {
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}

.dbnb-field textarea { resize: none; height: 64px; }

/* ── Error banner ────────────────────────────────────────── */
.dbnb-error {
    background: #fff0f1;
    border: 1px solid #f9c6c9;
    border-left: 4px solid #e63946;
    border-radius: 8px;
    padding: 12px 14px;
    color: #c1121f;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.dbnb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    padding: 13px 28px;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    font-family: inherit;
}

.dbnb-btn--primary {
    background: linear-gradient(135deg, #2d6a4f, #52b788);
    color: #fff;
    width: 100%;
    box-shadow: 0 4px 16px rgba(45,106,79,.3);
    margin-top: 4px;
}

.dbnb-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,106,79,.4);
}

.dbnb-btn--primary:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.dbnb-btn--outline {
    background: transparent;
    border: 2px solid #52b788;
    color: #2d6a4f;
    margin-top: 12px;
}
.dbnb-btn--outline:hover { background: #f0faf4; }

/* Spinner */
.dbnb-btn__spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dbnb-spin .7s linear infinite;
}

@keyframes dbnb-spin { to { transform: rotate(360deg); } }

/* ── Privacy note ────────────────────────────────────────── */
.dbnb-privacy {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin: 10px 0 0;
}

/* ── Success state ───────────────────────────────────────── */
.dbnb-success {
    text-align: center;
    padding: 20px 0 12px;
}

.dbnb-success__icon {
    font-size: 56px;
    margin-bottom: 12px;
    animation: dbnb-pop .4s cubic-bezier(.22,1,.36,1);
}

@keyframes dbnb-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.dbnb-success h3 {
    color: #1b4332;
    font-size: 20px;
    margin: 0 0 8px;
}

.dbnb-success p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
