/**
 * Mutual Fund Page Styles
 * 
 * Styles specific to the mutual fund investment page
 */

/* ========================================
   RESPONSIVE GRID UTILITIES
   ======================================== */

/* Base grid - Mobile first (1 column) */
.mf-grid-services { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.mf-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.mf-grid-calcs { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.mf-grid-process { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.mf-grid-benefits { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.mf-cta-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.mf-hero-buttons { display: flex; flex-direction: column; gap: 1rem; }

/* Responsive heading sizes */
.mf-heading-hero { font-size: 1.875rem; line-height: 1.2; }
.mf-heading-section { font-size: 1.5rem; line-height: 1.2; }
.mf-text-hero { font-size: 1.125rem; line-height: 1.5; }

/* Calculator card responsive padding */
.mf-calc-card { padding: 1rem; }

/* Small screens (640px+) */
@media (min-width: 640px) {
    .mf-grid-services { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .mf-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .mf-grid-calcs { gap: 1.5rem; }
    .mf-grid-process { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .mf-grid-benefits { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .mf-cta-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .mf-hero-buttons { flex-direction: row; justify-content: center; }
    .mf-calc-card { padding: 1.5rem; }
}

/* Medium screens (768px+) */
@media (min-width: 768px) {
    .mf-grid-calcs { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .mf-heading-hero { font-size: 3rem; }
    .mf-heading-section { font-size: 2.25rem; }
    .mf-text-hero { font-size: 1.5rem; }
    .mf-calc-card { padding: 2rem; }
}

/* Large screens (1024px+) */
@media (min-width: 1024px) {
    .mf-grid-services { grid-template-columns: repeat(3, 1fr); }
    .mf-grid-benefits { grid-template-columns: repeat(4, 1fr); }
    .mf-grid-process { grid-template-columns: repeat(6, 1fr); }
}

/* ========================================
   HERO SECTION
   ======================================== */

.mf-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}

.mf-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.mf-hero-section { padding: 4rem 0; }

@media (min-width: 768px) {
    .mf-hero-section { padding: 6rem 0; }
}

/* ========================================
   SERVICE CARDS
   ======================================== */

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

/* Service Icon Color Variants */
.service-icon-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.service-card:hover .service-icon-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.4);
}

.service-icon-emerald {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 1px solid #6ee7b7;
}

.service-card:hover .service-icon-emerald {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(5, 150, 105, 0.4);
}

.service-icon-purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
    border: 1px solid #c4b5fd;
}

.service-card:hover .service-icon-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(124, 58, 237, 0.4);
}

.service-icon-pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
    border: 1px solid #f9a8d4;
}

.service-card:hover .service-icon-pink {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(219, 39, 119, 0.4);
}

.service-icon-orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #ea580c;
    border: 1px solid #fdba74;
}

.service-card:hover .service-icon-orange {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(234, 88, 12, 0.4);
}

.service-icon-cyan {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #0891b2;
    border: 1px solid #67e8f9;
}

.service-card:hover .service-icon-cyan {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(8, 145, 178, 0.4);
}

/* ========================================
   CALCULATOR CARDS
   ======================================== */

.calculator-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
}

.calculator-card-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
}

/* ========================================
   OTHER COMPONENTS
   ======================================== */

.process-step {
    position: relative;
}

.disclaimer-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.cta-gradient {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.benefit-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.why-invest-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   RANGE SLIDER STYLING
   ======================================== */

.mf-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.mf-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.mf-range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease;
}

.mf-range-slider.accent-blue::-webkit-slider-thumb {
    background: #2563eb;
}

.mf-range-slider.accent-blue::-moz-range-thumb {
    background: #2563eb;
}

.mf-range-slider.accent-green::-webkit-slider-thumb {
    background: #16a34a;
}

.mf-range-slider.accent-green::-moz-range-thumb {
    background: #16a34a;
}

.mf-range-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

.mf-range-slider:active::-moz-range-thumb {
    transform: scale(1.2);
}

/* ========================================
   DISCLAIMER SECTION
   ======================================== */

.mf-disclaimer-section {
    padding: 2rem 0 3rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.mf-disclaimer-card {
    max-width: 56rem;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.mf-disclaimer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mf-disclaimer-badge-icon {
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mf-disclaimer-main {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-bottom: 1px solid #fde68a;
}

.mf-disclaimer-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

.mf-disclaimer-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

.mf-disclaimer-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
}

.mf-disclaimer-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.mf-disclaimer-info-item:last-child {
    border-bottom: none;
}

.mf-disclaimer-info-item:hover {
    background-color: #f8fafc;
}

.mf-disclaimer-footer {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.mf-disclaimer-footer p {
    font-size: 0.6875rem;
    color: #64748b;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .mf-disclaimer-section {
        padding: 3rem 0 4rem;
    }
    
    .mf-disclaimer-card {
        border-radius: 1.25rem;
    }
    
    .mf-disclaimer-badge {
        padding: 0.875rem 1.5rem;
        font-size: 0.8125rem;
    }
    
    .mf-disclaimer-main {
        padding: 1.5rem;
    }
    
    .mf-disclaimer-text {
        font-size: 1.0625rem;
    }
    
    .mf-disclaimer-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mf-disclaimer-info-item {
        padding: 1rem 1.5rem;
    }
    
    .mf-disclaimer-info-item:nth-child(odd) {
        border-right: 1px solid #f1f5f9;
    }
    
    .mf-disclaimer-info-item:nth-child(1),
    .mf-disclaimer-info-item:nth-child(2) {
        border-bottom: 1px solid #f1f5f9;
    }
    
    .mf-disclaimer-info-item:nth-child(3),
    .mf-disclaimer-info-item:nth-child(4) {
        border-bottom: none;
    }
    
    .mf-disclaimer-footer {
        padding: 1rem 1.5rem;
    }
    
    .mf-disclaimer-footer p {
        font-size: 0.75rem;
    }
}
