/* ============================================
   Activity Quote Widget — Mega-dropdown select
   ============================================ */

.leo-aq-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

/* ---- Section titles ---- */
.leo-aq-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #0B0B68;
    margin: 0 0 8px;
}

.leo-aq-section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 0 0 35px;
    font-weight: 400;
}

/* ============================================
   Select group — wraps select field + dropdown
   ============================================ */
.leo-aq-select-group {
    position: relative;
    margin-bottom: 20px;
}

/* ---- Label ---- */
.leo-aq-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #0B0B68;
    margin-bottom: 10px;
}

/* ---- Custom select field ---- */
.leo-aq-select {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 50px;
    padding: 8px 44px 8px 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.leo-aq-select:hover {
    border-color: #bbb;
}

.leo-aq-select:focus {
    outline: none;
    border-color: #E5A92E;
    box-shadow: 0 0 0 3px rgba(229, 169, 46, 0.15);
}

.leo-aq-select.open {
    border-color: #E5A92E;
    box-shadow: 0 0 0 3px rgba(229, 169, 46, 0.15);
}

/* Arrow */
.leo-aq-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: transform 0.25s, color 0.25s;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.leo-aq-select.open .leo-aq-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #E5A92E;
}

/* Placeholder */
.leo-aq-placeholder {
    color: #999;
    font-size: 15px;
    font-weight: 400;
    user-select: none;
    line-height: 1.4;
}

/* ---- Tags inside select ---- */
.leo-aq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.leo-aq-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #E5A92E;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px 4px 10px;
    border-radius: 20px;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 200px;
}

.leo-aq-tag-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leo-aq-tag-remove {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
}

.leo-aq-tag-remove:hover {
    opacity: 1;
}

/* ============================================
   Mega dropdown panel
   ============================================ */
.leo-aq-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 60vh;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
}

.leo-aq-dropdown.open {
    display: flex;
}

/* ---- Dropdown header (mobile only) ---- */
.leo-aq-dropdown-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 17px;
    font-weight: 700;
    color: #0B0B68;
    flex-shrink: 0;
}

.leo-aq-dropdown-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}

.leo-aq-dropdown-close:hover {
    color: #333;
}

/* ---- Dropdown body ---- */
.leo-aq-dropdown-body {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
    min-height: 0;
}

/* ---- Category titles (inside dropdown) ---- */
.leo-aq-category-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0B0B68;
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E5A92E;
    display: inline-block;
}

.leo-aq-category-block:first-child .leo-aq-category-title {
    margin-top: 0;
}

/* ---- Grid ---- */
.leo-aq-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.leo-aq-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.leo-aq-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ---- Cards ---- */
.leo-aq-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
    border: 3px solid transparent;
    user-select: none;
}

.leo-aq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.leo-aq-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leo-aq-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.leo-aq-card-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Checkmark */
.leo-aq-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E5A92E;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.leo-aq-card-check svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* Selected state */
.leo-aq-card.selected {
    border-color: #E5A92E;
    box-shadow: 0 0 0 2px rgba(229, 169, 46, 0.3);
}

.leo-aq-card.selected .leo-aq-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Dim non-selected cards when at least one is selected */
.leo-aq-wrapper.has-selection .leo-aq-card:not(.selected) {
    opacity: 0.55;
}

.leo-aq-wrapper.has-selection .leo-aq-card:not(.selected):hover {
    opacity: 0.85;
}

/* Placeholder for missing images */
.leo-aq-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B0B68 0%, #1a1a8f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leo-aq-card-placeholder svg {
    width: 32px;
    height: 32px;
    fill: rgba(255, 255, 255, 0.3);
}

/* ---- Dropdown footer ---- */
.leo-aq-dropdown-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    text-align: right;
    flex-shrink: 0;
    background: #fff;
}

.leo-aq-dropdown-validate {
    display: inline-block;
    padding: 10px 28px;
    background: #E5A92E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.2s, transform 0.15s;
}

.leo-aq-dropdown-validate:hover {
    background: #d49a27;
    transform: translateY(-1px);
}

/* ---- Participants section ---- */
.leo-aq-participants {
    margin: 0;
    text-align: left;
}

.leo-aq-participants-title {
    font-size: 16px;
    font-weight: 700;
    color: #0B0B68;
    margin: 0 0 10px;
}

.leo-aq-participants-field {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.leo-aq-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.leo-aq-counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #E5A92E;
    background: transparent;
    color: #E5A92E;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.leo-aq-counter-btn:hover {
    background: #E5A92E;
    color: #fff;
}

.leo-aq-counter-btn:focus,
.leo-aq-counter-btn:active {
    background: #E5A92E;
    color: #fff;
    border-color: #E5A92E;
    outline: none;
    box-shadow: none;
}

.leo-aq-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.leo-aq-counter-btn:disabled:hover {
    background: transparent;
    color: #E5A92E;
}

.leo-aq-counter-value {
    font-size: 28px;
    font-weight: 700;
    color: #E5A92E;
    min-width: 45px;
    text-align: center;
    line-height: 1;
}

.leo-aq-counter-label {
    font-size: 13px;
    color: #888;
    margin-top: 1px;
}

/* Range slider */
.leo-aq-range-wrapper {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.leo-aq-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
}

.leo-aq-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E5A92E;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.leo-aq-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E5A92E;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.leo-aq-range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* ---- Submit button ---- */
.leo-aq-submit-wrapper {
    margin: 20px 0 10px;
}

.leo-aq-submit-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: #E5A92E;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    text-align: center;
}

.leo-aq-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 169, 46, 0.4);
}

.leo-aq-submit-btn:active {
    transform: translateY(0);
}

.leo-aq-submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ---- SweetAlert button overrides ---- */
.swal2-container .swal2-cancel {
    background-color: #0B0B68 !important;
    color: #fff !important;
    border: none !important;
}

/* ---- SweetAlert form overrides ---- */
.leo-aq-swal-form {
    text-align: left;
}

.leo-aq-swal-form .leo-aq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.leo-aq-swal-form .leo-aq-form-full {
    margin-bottom: 12px;
}

.leo-aq-swal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0B0B68;
    margin-bottom: 4px;
}

.leo-aq-swal-form label .leo-aq-required {
    color: #E5A92E;
}

.leo-aq-swal-form input,
.leo-aq-swal-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Montserrat', Arial, sans-serif;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.leo-aq-swal-form input:focus,
.leo-aq-swal-form textarea:focus {
    outline: none;
    border-color: #E5A92E;
}

.leo-aq-swal-form input.leo-aq-input-error,
.leo-aq-swal-form textarea.leo-aq-input-error {
    border-color: #e74c3c;
}

.leo-aq-swal-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Selected activities recap in modal */
.leo-aq-swal-recap {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 18px;
    text-align: left;
}

.leo-aq-swal-recap-title {
    font-size: 13px;
    font-weight: 700;
    color: #0B0B68;
    margin: 0 0 6px;
}

.leo-aq-swal-recap-list {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ---- No activities message ---- */
.leo-aq-no-activities {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}

/* ---- Body scroll lock (mobile dropdown open) ---- */
body.leo-aq-body-locked {
    overflow: hidden !important;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
    .leo-aq-grid-3,
    .leo-aq-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
    .leo-aq-section-title {
        font-size: 22px;
    }

    .leo-aq-section-subtitle {
        font-size: 14px;
    }

    .leo-aq-label {
        font-size: 15px;
    }

    .leo-aq-select {
        min-height: 46px;
        padding: 6px 40px 6px 12px;
    }

    .leo-aq-placeholder {
        font-size: 14px;
    }

    .leo-aq-tag {
        font-size: 12px;
        padding: 3px 6px 3px 8px;
    }

    /* Dropdown fullscreen overlay on mobile */
    .leo-aq-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        z-index: 99999;
        border: none;
    }

    .leo-aq-dropdown-header {
        display: flex;
    }

    .leo-aq-dropdown-body {
        padding: 15px;
    }

    .leo-aq-grid-3,
    .leo-aq-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .leo-aq-category-title {
        font-size: 13px;
    }

    .leo-aq-card-name {
        font-size: 12px;
    }

    .leo-aq-dropdown-footer {
        padding: 12px 15px;
        text-align: center;
    }

    .leo-aq-dropdown-validate {
        width: 100%;
    }

    .leo-aq-participants-field {
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }

    .leo-aq-counter-value {
        font-size: 24px;
    }

    .leo-aq-counter-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .leo-aq-submit-btn {
        font-size: 16px;
        padding: 14px 20px;
    }

    .leo-aq-participants-title {
        font-size: 15px;
    }

    .leo-aq-swal-form .leo-aq-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .leo-aq-grid-3,
    .leo-aq-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .leo-aq-counter {
        gap: 10px;
    }

    .leo-aq-counter-value {
        font-size: 22px;
        min-width: 40px;
    }
}
