/* =========================================================================
   Contact Page — contact.css
   Extends the global style.css design system
   ========================================================================= */

/* -------------------------------------------------------------------------
   Quick-Contact Highlights Row
   ------------------------------------------------------------------------- */
.contact-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.8rem;
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    background: var(--surface-color-light);
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* WhatsApp */
.highlight-wa .highlight-icon {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.25);
}

.highlight-wa:hover {
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.12);
}

/* Email */
.highlight-email .highlight-icon {
    background: rgba(0, 211, 148, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 211, 148, 0.25);
}

.highlight-email:hover {
    border-color: rgba(0, 211, 148, 0.4);
    box-shadow: 0 16px 40px var(--accent-glow);
}

/* Office */
.highlight-office .highlight-icon {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-sky);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.highlight-office:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.12);
}

.highlight-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.highlight-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.highlight-value {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.highlight-arrow {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.highlight-card:hover .highlight-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* -------------------------------------------------------------------------
   Main Contact Grid — Form + Info Sidebar
   ------------------------------------------------------------------------- */
.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* -------------------------------------------------------------------------
   Contact Form Card
   ------------------------------------------------------------------------- */
.contact-form-card {
    padding: 2.8rem;
}

.form-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.form-label i {
    font-size: 0.95rem;
}

.form-group.focused .form-label {
    color: var(--accent);
}

.form-input {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.75);
}

.form-input.input-error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%235a5a6a' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.1rem;
    padding-right: 2.5rem;
}

.form-select option {
    background: #ffffff;
    color: var(--text-main);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* Budget Radio Chips */
.budget-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.budget-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.budget-chip input[type="radio"] {
    display: none;
}

.budget-chip:hover {
    border-color: var(--accent);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.7);
}

.budget-chip.selected {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 211, 148, 0.15), rgba(5, 150, 105, 0.15));
    color: var(--accent-secondary);
    box-shadow: 0 3px 12px var(--accent-glow);
}

/* Inline Form Errors */
.form-error {
    display: none;
    font-size: 0.78rem;
    color: var(--accent-danger);
    font-weight: 600;
    margin-top: 0.1rem;
}

/* Form Feedback Banner */
.form-feedback {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.form-feedback i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.feedback-success {
    background: rgba(0, 211, 148, 0.12);
    border: 1px solid rgba(0, 211, 148, 0.3);
    color: var(--accent-secondary);
}

.feedback-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #dc2626;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    gap: 0.6rem;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-spinner {
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Small privacy note */
.form-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
}

.form-note i {
    color: var(--accent);
}

/* -------------------------------------------------------------------------
   Info Cards (Right Sidebar)
   ------------------------------------------------------------------------- */
.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    padding: 1.8rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.info-card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0, 211, 148, 0.12), rgba(5, 150, 105, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* Business Hours */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.hours-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.day {
    font-weight: 600;
    color: var(--text-main);
}

.time {
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.time.closed {
    color: #f87171;
    font-weight: 600;
}

.response-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--accent-secondary);
    background: rgba(0, 211, 148, 0.1);
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 211, 148, 0.2);
    font-weight: 600;
}

.response-badge i {
    font-size: 1rem;
}

/* Address Card */
.address-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* Social Links Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
    color: var(--text-main);
    text-decoration: none;
}

.social-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.social-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.75);
}

.social-item.linkedin i { color: #0a66c2; }
.social-item.linkedin:hover { border-color: rgba(10, 102, 194, 0.4); box-shadow: 0 6px 20px rgba(10, 102, 194, 0.12); }

.social-item.instagram i { color: #e1306c; }
.social-item.instagram:hover { border-color: rgba(225, 48, 108, 0.4); box-shadow: 0 6px 20px rgba(225, 48, 108, 0.12); }

.social-item.twitter i { color: #1da1f2; }
.social-item.twitter:hover { border-color: rgba(29, 161, 242, 0.4); box-shadow: 0 6px 20px rgba(29, 161, 242, 0.12); }

.social-item.facebook i { color: #1877f2; }
.social-item.facebook:hover { border-color: rgba(24, 119, 242, 0.4); box-shadow: 0 6px 20px rgba(24, 119, 242, 0.12); }

/* -------------------------------------------------------------------------
   Map Section
   ------------------------------------------------------------------------- */
.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.map-overlay-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-overlay-label i {
    color: var(--accent-danger);
    font-size: 1rem;
}

.map-wrapper iframe {
    display: block;
}

/* =========================================================================
   Responsive Design  — contact.css
   ========================================================================= */

/* ── 1100px : sidebar goes full-width, info cards go 3-col ─────────────── */
@media (max-width: 1100px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-wrap {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

/* ── 900px : highlights stack, form rows go 1-col ───────────────────────── */
@media (max-width: 900px) {
    .contact-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-wrap {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ── 768px : form card padding reduced, map shorter ────────────────────── */
@media (max-width: 768px) {
    .contact-form-card {
        padding: 1.8rem 1.4rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .map-wrapper iframe {
        height: 260px;
    }

    .social-links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }

    /* CTA section buttons stack */
    .contact-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── 600px : tighten everything further ─────────────────────────────────── */
@media (max-width: 600px) {
    /* Page header */
    .page-header {
        padding: 7rem 0 2.5rem;
    }

    /* Highlights: keep icon visible but smaller */
    .contact-highlights {
        gap: 0.8rem;
    }

    .highlight-card {
        padding: 1rem 1rem;
        gap: 0.75rem;
    }

    .highlight-icon {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
        flex-shrink: 0;
    }

    .highlight-value {
        font-size: 0.85rem;
        /* prevent long email from overflowing */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 160px;
    }

    /* Form card */
    .contact-form-card {
        padding: 1.4rem 1.1rem;
    }

    .form-header {
        margin-bottom: 1.4rem;
        padding-bottom: 1.2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    /* Budget chips wrap to smaller sizes */
    .budget-options {
        gap: 0.4rem;
    }

    .budget-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    /* Custom dropdown trigger */
    .cs-trigger {
        padding: 0.75rem 0.9rem;
        gap: 0.55rem;
    }

    /* Social grid stays 2-col but tighter */
    .social-links-grid {
        gap: 0.6rem;
    }

    .social-item {
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
    }

    /* Map */
    .map-wrapper iframe {
        height: 230px;
    }

    /* Hours list doesn't wrap */
    .hours-list li {
        flex-wrap: wrap;
        gap: 0.2rem;
    }

    .day {
        flex: 1 1 100%;
    }

    .time {
        font-size: 0.85rem;
    }

    /* Info card padding */
    .info-card {
        padding: 1.3rem;
    }
}

/* ── 480px : further compression ────────────────────────────────────────── */
@media (max-width: 480px) {
    .contact-highlights {
        gap: 0.7rem;
    }

    .highlight-card {
        padding: 0.9rem 0.9rem;
    }

    /* Hide the arrow on tiny screens to save space */
    .highlight-arrow {
        display: none;
    }

    .highlight-value {
        max-width: 140px;
    }

    .contact-form-card {
        padding: 1.2rem 1rem;
        border-radius: var(--radius-md);
    }

    .budget-chip {
        font-size: 0.78rem;
        padding: 0.38rem 0.7rem;
    }

    /* Social: stay 2-col, just reduce padding */
    .social-item {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
        gap: 0.45rem;
    }

    .social-item i {
        font-size: 1.05rem;
    }

    /* CTA section */
    .contact-cta-actions {
        flex-direction: column !important;
    }
    .contact-cta-actions .btn {
        width: 100% !important;
        justify-content: center;
    }

    /* Reduce page header top padding */
    .page-header {
        padding: 6.5rem 0 2rem;
    }
}

/* ── 360px : critical narrow-phone fixes ────────────────────────────────── */
@media (max-width: 360px) {
    /* Container inner padding tighter */
    .container {
        padding: 0 1rem;
    }

    /* Navbar logo text size */
    .logo {
        font-size: 1.4rem;
    }

    /* Highlight cards go even tighter */
    .highlight-card {
        padding: 0.8rem;
        gap: 0.6rem;
        border-radius: var(--radius-md);
    }

    .highlight-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .highlight-label {
        font-size: 0.68rem;
    }

    .highlight-value {
        font-size: 0.8rem;
        max-width: 120px;
    }

    /* Form card */
    .contact-form-card {
        padding: 1rem 0.85rem;
    }

    .form-label {
        font-size: 0.75rem;
    }

    .form-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.85rem;
    }

    /* Budget chips: wrap freely, even smaller */
    .budget-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    /* Custom dropdown */
    .cs-trigger {
        padding: 0.7rem 0.8rem;
        gap: 0.45rem;
        min-height: 44px;
    }

    .cs-icon-wrap {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }

    .cs-selected-text {
        font-size: 0.88rem;
    }

    .cs-chevron {
        font-size: 1.05rem;
    }

    .cs-option {
        padding: 0.55rem 0.75rem;
        gap: 0.55rem;
        font-size: 0.86rem;
    }

    .cs-opt-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    /* Social grid: go 1-col so text doesn't clip */
    .social-links-grid {
        grid-template-columns: 1fr;
    }

    /* Info cards */
    .info-card {
        padding: 1rem 0.85rem;
    }

    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .info-card-header h3 {
        font-size: 1rem;
    }

    /* Map height */
    .map-wrapper iframe {
        height: 200px;
    }

    /* Submit button */
    .btn-submit {
        font-size: 0.95rem;
        padding: 0.85rem 1.5rem;
    }

    /* Form note text */
    .form-note {
        font-size: 0.75rem;
    }

    /* Response badge wraps */
    .response-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
        flex-wrap: wrap;
    }
}

/* ── 320px : absolute minimum — catch remaining overflow ─────────────────── */
@media (max-width: 320px) {
    .container {
        padding: 0 0.75rem;
    }

    .page-header {
        padding: 6rem 0 1.8rem;
    }

    .highlight-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .highlight-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .highlight-value {
        font-size: 0.75rem;
        max-width: 100px;
    }

    .highlight-label {
        font-size: 0.63rem;
    }

    .contact-form-card {
        padding: 0.9rem 0.75rem;
        border-radius: var(--radius-sm);
    }

    .form-input {
        font-size: 0.85rem;
        padding: 0.65rem 0.75rem;
    }

    .form-label {
        font-size: 0.7rem;
    }

    .budget-chip {
        font-size: 0.72rem;
        padding: 0.3rem 0.55rem;
    }

    .cs-trigger {
        padding: 0.65rem 0.7rem;
        gap: 0.4rem;
        min-height: 42px;
    }

    .cs-icon-wrap {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
    }

    .cs-selected-text {
        font-size: 0.82rem;
    }

    .cs-option {
        padding: 0.5rem 0.6rem;
        font-size: 0.82rem;
        gap: 0.45rem;
    }

    .cs-opt-icon {
        width: 26px;
        height: 26px;
        font-size: 0.82rem;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .info-card {
        padding: 0.9rem 0.75rem;
    }

    .info-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .info-card-header h3 {
        font-size: 0.95rem;
    }

    .hours-list li {
        font-size: 0.82rem;
    }

    .address-text {
        font-size: 0.85rem;
    }

    .map-wrapper iframe {
        height: 180px;
    }

    .btn-submit {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
    }

    .form-note {
        font-size: 0.7rem;
    }

    .response-badge {
        font-size: 0.7rem;
    }

    /* Footer tighter */
    .footer-grid {
        gap: 1.5rem;
    }
}

/* =========================================================================
   Custom Service Dropdown
   ========================================================================= */

.custom-select-wrap {
    position: relative;
    width: 100%;
    outline: none;
}

/* ── Trigger button ─────────────────────────────────────────── */
.cs-trigger {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    min-height: 50px;
}

.custom-select-wrap:focus .cs-trigger,
.custom-select-wrap.open .cs-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(255, 255, 255, 0.75);
}

/* Leading icon pill inside trigger */
.cs-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 211, 148, 0.14), rgba(5, 150, 105, 0.14));
    border: 1px solid rgba(0, 211, 148, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.custom-select-wrap.open .cs-icon-wrap,
.custom-select-wrap.has-value .cs-icon-wrap {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.cs-selected-text {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: #9ca3af;        /* placeholder colour */
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-wrap.has-value .cs-selected-text {
    color: var(--text-main);
    font-weight: 600;
}

/* Animated chevron */
.cs-chevron {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
}

.custom-select-wrap.open .cs-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

/* ── Dropdown panel ─────────────────────────────────────────── */
.cs-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 211, 148, 0.08);
    overflow: hidden;
    padding: 0.4rem;

    /* Closed state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scaleY(0.96);
    transform-origin: top center;
    transition:
        opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.22s;
}

.custom-select-wrap.open .cs-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scaleY(1);
}

/* ── Individual options ─────────────────────────────────────── */
.cs-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-main);
    list-style: none;
    position: relative;
    overflow: hidden;
}

.cs-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 211, 148, 0.08), transparent);
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.2s ease;
}

.cs-option:hover {
    background: rgba(0, 211, 148, 0.06);
    color: var(--accent-secondary);
    transform: translateX(3px);
}

.cs-option:hover::before {
    opacity: 1;
}

.cs-option.selected {
    background: linear-gradient(135deg, rgba(0, 211, 148, 0.13), rgba(5, 150, 105, 0.10));
    color: var(--accent-secondary);
    font-weight: 700;
    border: 1px solid rgba(0, 211, 148, 0.22);
}

.cs-option.selected::after {
    content: '\e92c';        /* bx-check */
    font-family: 'boxicons';
    font-size: 1.1rem;
    margin-left: auto;
    color: var(--accent);
    flex-shrink: 0;
}

/* Option icon pill */
.cs-opt-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 211, 148, 0.09);
    border: 1px solid rgba(0, 211, 148, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cs-option:hover .cs-opt-icon {
    background: rgba(0, 211, 148, 0.16);
    border-color: rgba(0, 211, 148, 0.35);
}

.cs-option.selected .cs-opt-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px var(--accent-glow);
}

.cs-opt-label {
    flex: 1;
}

/* Thin separator between options */
.cs-option + .cs-option {
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

/* Staggered entrance animation for each option */
.custom-select-wrap.open .cs-option {
    animation: csOptionIn 0.22s ease both;
}

.custom-select-wrap.open .cs-option:nth-child(1)  { animation-delay: 0.02s; }
.custom-select-wrap.open .cs-option:nth-child(2)  { animation-delay: 0.05s; }
.custom-select-wrap.open .cs-option:nth-child(3)  { animation-delay: 0.08s; }
.custom-select-wrap.open .cs-option:nth-child(4)  { animation-delay: 0.11s; }
.custom-select-wrap.open .cs-option:nth-child(5)  { animation-delay: 0.14s; }
.custom-select-wrap.open .cs-option:nth-child(6)  { animation-delay: 0.17s; }
.custom-select-wrap.open .cs-option:nth-child(7)  { animation-delay: 0.20s; }

@keyframes csOptionIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Accent gradient bar at top of open dropdown */
.cs-dropdown::before {
    content: '';
    display: block;
    height: 3px;
    margin: -0.4rem -0.4rem 0.4rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent-sky));
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.custom-select-wrap.open .cs-dropdown::before {
    opacity: 1;
}
