/* ==================== PREMIUM TESTIMONIALS UPGRADE ==================== */
.premium-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: center; /* Crucial for the staggered effect */
}

.premium-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(10, 15, 25, 0.8) 0%, rgba(2, 3, 5, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    /* We removed the transform transition here so your 3D JS hover still works perfectly! */
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.premium-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.05), inset 0 0 20px rgba(0, 240, 255, 0.02);
}

/* Stagger the middle card on Desktop */
@media (min-width: 1000px) {
    .center-card {
        transform: scale(1.05); /* Makes it slightly larger */
        z-index: 2;
        border-color: rgba(0, 240, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

/* Massive background quote mark */
.testi-bg-quote {
    position: absolute;
    top: -30px;
    right: 15px;
    font-family: 'Space Grotesk', serif;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.stars {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.testi-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #E2E8F0;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* Client Profile Area */
.client-profile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    color: #000;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.client-info-text {
    display: flex;
    flex-direction: column;
}

.client-name {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Space Grotesk', sans-serif;
}

.client-role {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 3px;
    opacity: 0.9;
}

/* Stack them normally on Mobile */
@media (max-width: 1000px) {
    .premium-testi-grid {
        grid-template-columns: 1fr;
    }
    .premium-card {
        min-height: auto;
    }
    .center-card {
        transform: scale(1); /* Removes scale on mobile */
    }
}

/* ==================== SIDE DRAWER MODAL ==================== */
.lead-drawer {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen by default */
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(2, 3, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 10001; 
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevents the whole drawer from scrolling */
    box-shadow: -15px 0 40px rgba(0,0,0,0.8);
}

.lead-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Header stays locked at the top */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0; 
    background: rgba(2, 3, 5, 1);
    z-index: 2;
}

.drawer-header h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}

.drawer-close-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* The Body handles the scrolling */
.drawer-body {
    padding: 2rem;
    flex: 1; /* Takes up remaining space */
    overflow-y: auto; /* Enables vertical scrolling */
}

/* Custom Scrollbar for the Drawer Body */
.drawer-body::-webkit-scrollbar {
    width: 6px;
}
.drawer-body::-webkit-scrollbar-track {
    background: rgba(2, 3, 5, 0.5);
}
.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 10px;
}
.drawer-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Drawer Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    color: #FFFFFF !important;
    padding: 0.75rem 0;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-bottom-color: var(--accent);
}

.form-group select {
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer;
    appearance: none;
}

.form-group select option {
    background-color: var(--bg-dark);
    color: #FFFFFF;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Fix for Date/Time picker icons on dark theme */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Custom Select Dropdown Styling */
.select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--accent);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.select-wrapper select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 0;
    font-size: 1rem;
    outline: none;
    appearance: none; /* Removes the default ugly browser arrow */
    -webkit-appearance: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.select-wrapper select:focus {
    border-bottom-color: var(--accent);
    color: #fff;
}

/* Dropdown Options Background */
.select-wrapper select option {
    background-color: #020305; /* Deep space dark */
    color: #ffffff;
    padding: 15px;
}

/* Optional: Gray out the placeholder option */
.select-wrapper select option[value=""][disabled] {
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile adjustments */
@media (max-width: 500px) {
    .lead-drawer {
        max-width: 100vw;
        border-left: none;
    }
}
