/* ── Trastora Booking Popup — popup.css ── */

/* Overlay */
#trastora-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 10, 30, 0.72);
    backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: trFadeIn .2s ease;
}
#trastora-overlay.open {
    display: flex;
}

@keyframes trFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal box */
#trastora-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 36px 36px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 60, 140, 0.22);
    animation: trSlideUp .28s cubic-bezier(.22,.68,0,1.2);
}
@keyframes trSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scrollbar styling */
#trastora-modal::-webkit-scrollbar { width: 5px; }
#trastora-modal::-webkit-scrollbar-track { background: transparent; }
#trastora-modal::-webkit-scrollbar-thumb { background: #c0d9f0; border-radius: 4px; }

/* Close button */
#trastora-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f0f4f8;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #445;
    transition: background .15s, color .15s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#trastora-close:hover {
    background: #e0e8f4;
    color: #0077cc;
    transform: rotate(90deg);
}

/* Header */
.trastora-modal-header {
    margin-bottom: 24px;
}
.trastora-logo-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}
.trastora-brand {
    font-family: 'Trebuchet MS', 'Gill Sans', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 3px;
    color: #0077cc;
    text-transform: uppercase;
}
.trastora-modal-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    color: #0d1f3c;
    margin: 0 0 4px;
    line-height: 1.2;
}
.trastora-modal-header p {
    font-size: 13px;
    color: #6b7a99;
    margin: 0;
}

/* Form layout */
#trastora-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trastora-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.trastora-budget {
    align-items: end;
}

.tr-budget-sep {
    font-size: 13px;
    color: #8899aa;
    padding-bottom: 12px;
    text-align: center;
}

/* Fields */
.trastora-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trastora-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334466;
    letter-spacing: .3px;
}
.trastora-field label span {
    color: #e05;
    margin-left: 2px;
}
.trastora-field label em {
    font-weight: 400;
    font-style: normal;
    color: #9aaabb;
    font-size: 11px;
}

.trastora-field input,
.trastora-field select {
    height: 42px;
    border: 1.5px solid #d0dcea;
    border-radius: 9px;
    padding: 0 13px;
    font-size: 14px;
    color: #1a2540;
    background: #f7fafd;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.trastora-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230077cc' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 34px;
}

.trastora-field input:focus,
.trastora-field select:focus {
    border-color: #0077cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,119,204,.12);
}

.trastora-field input.tr-invalid,
.trastora-field select.tr-invalid {
    border-color: #e03050;
    background: #fff8fa;
}

/* Error messages */
.tr-err {
    font-size: 11.5px;
    color: #e03050;
    display: none;
    margin-top: -2px;
}
.tr-err.visible {
    display: block;
}

/* Status message */
.trastora-msg {
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 13.5px;
    line-height: 1.5;
}
.trastora-msg.success {
    background: #e6f6ee;
    color: #1a6e3c;
    border: 1px solid #b2dfc5;
}
.trastora-msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Submit button */
.trastora-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    background: linear-gradient(135deg, #0077cc 0%, #005599 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: transform .15s, box-shadow .15s, filter .15s;
    box-shadow: 0 4px 16px rgba(0,119,204,.35);
    margin-top: 4px;
}
.trastora-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(0,119,204,.4);
    filter: brightness(1.08);
}
.trastora-submit-btn:active {
    transform: translateY(0);
}
.trastora-submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.tr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: trSpin .7s linear infinite;
}
@keyframes trSpin {
    to { transform: rotate(360deg); }
}

/* Shortcode button */
.trastora-sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 24px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .2px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transition: filter .15s, transform .15s, box-shadow .15s;
}
.trastora-sc-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(0,0,0,.22);
}

/* ── Responsive ── */
@media (max-width: 520px) {
    #trastora-modal {
        padding: 24px 20px 28px;
        border-radius: 14px;
    }
    .trastora-row {
        grid-template-columns: 1fr;
    }
    .tr-budget-sep {
        display: none;
    }
}
