/* ===== Case Study Landing Page Styles ===== */

/* Hero adjustments */
.case-study-hero {
    min-height: 90vh;
}

.case-study-hero .hero-subtitle strong {
    color: var(--accent-1);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-1);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Section Dark */
.section-dark {
    background: var(--bg-secondary);
}

/* Requirements Grid */
.requirements-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.requirement-item:hover {
    border-color: var(--border-glow);
}

.requirement-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.requirement-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.requirement-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Application Form */
.application-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
}

.application-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-1);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group select {
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.form-group select:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Checkbox */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Visually hidden but still keyboard-focusable */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkmark {
    outline: 3px solid rgba(87, 255, 143, 0.82);
    outline-offset: 3px;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: var(--accent-1);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-glow);
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer Simple */
.footer-simple {
    grid-template-columns: 2fr 1fr !important;
}

/* Responsive */
@media (max-width: 768px) {
    .benefits-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .application-form-wrapper {
        padding: 28px 20px;
    }
    
    .case-study-hero {
        min-height: 0;
        padding-bottom: 60px;
    }
    
    .footer-simple {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .requirement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .requirement-number {
        margin: 0 auto;
    }
}

/* ===== Built with AI.ca Case Study Refresh ===== */
.case-study-hero {
    min-height: 100svh;
}

.case-study-hero .hero-subtitle strong {
    color: #8cc3ff;
}

.benefits-grid,
.faq-grid {
    gap: 22px;
}

.benefit-card {
    padding: 34px;
    border-color: rgba(140, 178, 235, 0.12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(14, 36, 72, 0.78), rgba(7, 21, 44, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), var(--shadow-sm);
}

.benefit-card:hover {
    transform: translateY(-7px);
    border-color: rgba(74, 143, 245, 0.42);
    box-shadow: var(--shadow-glow);
}

.benefit-icon {
    border: 1px solid rgba(100, 161, 255, 0.18);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(22, 119, 255, 0.16), rgba(124, 58, 237, 0.08));
    color: #6faaff;
}

.section-dark {
    background:
        linear-gradient(180deg, rgba(11, 29, 58, 0.54), rgba(6, 17, 36, 0.72)),
        var(--bg-secondary);
    border-block: 1px solid rgba(140, 178, 235, 0.07);
}

.requirements-grid {
    max-width: 860px;
    gap: 16px;
}

.requirement-item {
    padding: 26px;
    border-color: rgba(140, 178, 235, 0.12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(14, 36, 72, 0.78), rgba(7, 21, 44, 0.72));
    box-shadow: var(--shadow-sm);
}

.requirement-item:hover {
    transform: translateX(5px);
    border-color: rgba(74, 143, 245, 0.4);
}

.requirement-number {
    border-radius: 13px;
    box-shadow: 0 10px 25px rgba(22, 119, 255, 0.22);
}

.application-form-wrapper {
    max-width: 860px;
    border-color: rgba(83, 150, 255, 0.36);
    background: linear-gradient(155deg, rgba(13, 34, 67, 0.94), rgba(5, 16, 35, 0.95));
    box-shadow: 0 28px 80px rgba(0, 5, 20, 0.36);
}

.form-section-title {
    color: #8cc3ff;
    border-bottom-color: rgba(140, 178, 235, 0.12);
}

.form-group select {
    min-height: 52px;
    background-color: rgba(2, 10, 24, 0.62);
    border-color: rgba(140, 178, 235, 0.16);
}

.form-group select:focus {
    border-color: #3588ff;
    box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.12);
}

.checkmark {
    border-color: rgba(140, 178, 235, 0.3);
    background: rgba(2, 10, 24, 0.42);
}

.faq-item {
    padding: 30px;
    border-color: rgba(140, 178, 235, 0.12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(14, 36, 72, 0.78), rgba(7, 21, 44, 0.72));
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 143, 245, 0.4);
}

@media (max-width: 768px) {
    .case-study-hero {
        min-height: auto;
        padding-bottom: 68px;
    }

    .benefit-card,
    .faq-item {
        padding: 26px;
    }

    .application-form-wrapper {
        padding: 28px 20px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .requirement-item {
        padding: 22px;
    }
}

/* ===== Official Mint + Navy Brand Palette ===== */
.case-study-hero .hero-subtitle strong,
.form-section-title {
    color: var(--brand-mint-soft);
}

.benefit-card,
.requirement-item,
.faq-item {
    border-color: rgba(143, 217, 177, 0.13);
    background: linear-gradient(145deg, rgba(22, 54, 77, 0.82), rgba(11, 35, 50, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 8px 24px rgba(1, 12, 18, 0.2);
}

.benefit-card:hover,
.requirement-item:hover,
.faq-item:hover {
    border-color: rgba(87, 255, 143, 0.4);
}

.benefit-icon {
    border-color: rgba(87, 255, 143, 0.2);
    background: linear-gradient(145deg, rgba(87, 255, 143, 0.14), rgba(53, 233, 130, 0.06));
    color: var(--brand-mint);
}

.section-dark {
    background:
        linear-gradient(180deg, rgba(22, 54, 77, 0.55), rgba(13, 40, 57, 0.76)),
        var(--bg-secondary);
    border-color: rgba(143, 217, 177, 0.07);
}

.requirement-number {
    color: #102c3e;
    box-shadow: 0 10px 25px rgba(87, 255, 143, 0.18);
}

.application-form-wrapper {
    border-color: rgba(87, 255, 143, 0.32);
    background: linear-gradient(155deg, rgba(22, 54, 77, 0.96), rgba(8, 29, 43, 0.97));
    box-shadow: 0 28px 80px rgba(1, 12, 18, 0.34);
}

.form-section-title {
    border-bottom-color: rgba(143, 217, 177, 0.13);
}

.form-group select {
    background-color: rgba(5, 23, 34, 0.72);
    border-color: rgba(143, 217, 177, 0.16);
}

.form-group select:focus {
    border-color: var(--brand-mint);
    box-shadow: 0 0 0 4px rgba(87, 255, 143, 0.1);
}

.checkmark {
    border-color: rgba(143, 217, 177, 0.3);
    background: rgba(5, 23, 34, 0.52);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    border-color: var(--brand-mint);
}

@media (max-width: 768px) {
    /* Match the 16px mobile input size from styles.css so iOS doesn't zoom;
       this file loads later, so its select rule would otherwise win */
    .form-group select {
        font-size: 16px;
    }
}
