/**
 * Quick Search Widget — Global Styles
 *
 * Rainbow gradient border, white background, gradient Check Rates button.
 * Used in blog sidebar, Gutenberg blocks, and anywhere the widget is placed.
 * Two-column rows (Date/Days, Mobile/Button) work in sidebar via compact sizing.
 *
 * @package TravelPro
 */

/* ── Rainbow gradient border via pseudo-element ── */
.quick-search-widget {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}
.quick-search-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 3px;
    background: linear-gradient(135deg, #e74c3c, #f39c12, #f1c40f, #2ecc71, #3498db, #9b59b6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
.quick-search-widget *,
.quick-search-widget *::before,
.quick-search-widget *::after {
    box-sizing: border-box;
}

/* Title — bold, centered, NOT italic */
.quick-search-widget .quick-search-title {
    font-size: 20px;
    font-weight: 700;
    font-style: normal;
    color: #1a202c;
    text-align: center;
    margin: 0 0 18px;
    padding: 0;
    border: none;
    line-height: 1.3;
}

/* Form wrapper */
.quick-search-widget .qs-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Labels — compact */
.quick-search-widget .qs-label {
    color: #2d3748;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    line-height: 1.3;
}
.quick-search-widget .qs-required {
    color: #e53e3e;
    margin-left: 2px;
}

/* Inputs — compact height */
.quick-search-widget .qs-input {
    width: 100%;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #2d3748;
    font-size: 13px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    min-width: 0;
    height: 38px;
}
.quick-search-widget .qs-input::placeholder {
    color: #a0aec0;
    font-size: 12px;
}
.quick-search-widget .qs-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.1);
}

/* Date / Days row — always side-by-side */
.quick-search-widget .qs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.quick-search-widget .qs-row .qs-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile + Button row — always side-by-side */
.quick-search-widget .qs-inline-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}
.quick-search-widget .qs-inline-row > div {
    min-width: 0;
}

/* Button — gradient blue→green, compact */
.quick-search-widget .qs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3182ce, #38a169);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
    height: 38px;
    margin-bottom: 14px;
}
.quick-search-widget .qs-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Remove double border: neutralize .widget wrapper from blog.css ── */
.widget.widget_quick_search {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 24px;
    border-radius: 0;
}
.widget.widget_quick_search > .widget-title,
.widget_quick_search .widget-title {
    display: none; /* heading is inside the widget itself */
}

/* ── Responsive: stack on very narrow screens ── */
@media (max-width: 360px) {
    .quick-search-widget .qs-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .quick-search-widget .qs-inline-row {
        grid-template-columns: 1fr;
    }
    .quick-search-widget .qs-btn {
        width: 100%;
        margin-bottom: 0;
    }
}
