/**
 * Travel Packages & Itinerary Manager Admin & Frontend Styles
 */

/* Wrapper & Sections */
.tz-itinerary-manager-wrapper,
.tz-faqs-wrapper,
.tz-gallery-manager {
    margin: 8px 0;
}

.tz-section-hint {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Itinerary List & Cards */
.tz-itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.tz-itinerary-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.tz-itinerary-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Card Header */
.tz-itinerary-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.tz-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.tz-drag-handle {
    cursor: grab;
    color: #94a3b8;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.tz-drag-handle:active {
    cursor: grabbing;
}

.tz-day-badge {
    background: #0ea5e9;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.tz-title-preview {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tz-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tz-header-right .button {
    height: 28px;
    line-height: 26px;
    padding: 0 8px;
}

.tz-delete-card {
    color: #ef4444 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
    padding: 0 4px !important;
}

.tz-delete-card:hover {
    color: #b91c1c !important;
}

/* Card Body */
.tz-itinerary-body {
    padding: 16px;
    background: #ffffff;
}

.tz-form-grid {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.tz-form-col-day {
    flex: 0 0 110px;
}

.tz-form-col-title {
    flex: 1;
}

.tz-meta-subgrid .tz-form-col {
    flex: 1;
}

.tz-form-grid label,
.tz-desc-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12.5px;
    color: #334155;
}

.tz-form-grid input[type="text"],
.tz-form-grid input[type="number"],
.tz-desc-group textarea {
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 13.5px;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tz-form-grid input:focus,
.tz-desc-group textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px #0ea5e9;
    outline: none;
}

.tz-desc-group textarea {
    line-height: 1.5;
    font-family: inherit;
}

/* Side Table Styling */
.tz-side-table td {
    padding: 7px 0;
    vertical-align: middle;
}

.tz-side-table input[type="text"],
.tz-side-table input[type="number"] {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 5px 8px;
}

/* Gallery items */
.tz-gallery-item {
    transition: transform 0.15s, box-shadow 0.15s;
}

.tz-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===================================================
   FRONTEND ENQUIRY CARD & BOOKING STYLES
   =================================================== */
.tz-enquiry-card.card,
.card:has(.enquiryForm) {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    font-family: inherit;
    margin-bottom: 24px;
}

.tz-enquiry-card .card-header,
.card:has(.enquiryForm) .card-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 16px 20px;
    border-bottom: none;
}

.tz-enquiry-card .card-title,
.card:has(.enquiryForm) .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tz-enquiry-card .card-body,
.card:has(.enquiryForm) .card-body {
    padding: 22px;
    position: relative;
}

/* Date section side-by-side */
.enquiryForm .datsec {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.enquiryForm .datsec .form-group {
    flex: 1;
    min-width: 0;
}

.enquiryForm .form-group {
    margin-bottom: 14px;
}

.enquiryForm label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.enquiryForm .form-control {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.enquiryForm .form-control:focus {
    background-color: #ffffff;
    border-color: #0945A5;
    box-shadow: 0 0 0 3px rgba(9, 69, 165, 0.15);
    outline: none;
}

.enquiryForm select.form-control {
    cursor: pointer;
}

.enquiryForm .input-group {
    display: flex;
    position: relative;
    width: 100%;
}

.enquiryForm .input-group-text.phone_code {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0945A5;
    background-color: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-right: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    white-space: nowrap;
}

.enquiryForm .input-group input.form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.enquiryForm textarea.form-control {
    resize: vertical;
    min-height: 78px;
}

/* Submit button */
.enquiryForm .btn-orange {
    background: linear-gradient(135deg, #0945A5 0%, #062E70 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.enquiryForm .btn-orange:hover {
    background: linear-gradient(135deg, #062E70 0%, #041D47 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

.enquiryForm .btn-orange:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Loading Overlay & Spinner */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.tz-spinner {
    width: 40px;
    height: 40px;
    border: 3.5px solid #fed7aa;
    border-top-color: #062E70;
    border-radius: 50%;
    animation: tzSpin 0.75s linear infinite;
}

@keyframes tzSpin {
    to { transform: rotate(360deg); }
}

/* Alert notifications */
.enquiryForm .alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: left;
}

.enquiryForm .alert-success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.enquiryForm .alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.d-none {
    display: none !important;
}
