/*
 * Birat IVF - Main Stylesheet
 * Hope & Care for Every Journey
 * Enhanced Version with Advanced Animations & Features
 */

/* === CSS Variables === */
:root {
    --primary-dark: #5a1152;
    --primary: #75166a;
    --primary-light: #f8e6f6;
    --accent: #e31587;
    --accent-light: #fce8f4;
    --warning: #f5a623;
    --bg-light: #fdf8fc;
    --bg-gradient: linear-gradient(135deg, #fce8f4, #ffffff);
    --text-dark: #3d0d38;
    --text-medium: #5a1152;
    --text-light: #8b4d82;
    --shadow-soft: 0 10px 40px rgba(117, 22, 106, 0.1);
    --shadow-medium: 0 20px 60px rgba(117, 22, 106, 0.15);
    --shadow-strong: 0 30px 80px rgba(117, 22, 106, 0.2);
    --shadow-hover: 0 15px 50px rgba(227, 21, 135, 0.2);
    --gray-bg: #faf5f9;
    --border-radius: 30px;
    --border-radius-lg: 50px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

/* === Loading Screen === */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Container === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3%;
}

.container-sm {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 3%;
}

.container-lg {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3%;
}

.container-fluid {
    width: 100%;
    padding: 0 3%;
}

/* === Navbar === */
.navbar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: white;
    padding: 0.6rem 3%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 6px 18px rgba(117, 22, 106, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
    transition: var(--transition-medium);
}

.logo-img:hover {
    transform: scale(1.02);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
}

.logo span {
    font-size: 0.85rem;
    font-weight: 300;
    color: #f8c8ec;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-links a {
    color: #fff5fb;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    transition: 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom-color: #e31587;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Sections General === */
.section-title {
    font-size: 2.8rem;
    font-weight: 400;
    color: #5a1152;
    margin-bottom: 1rem;
    border-left: 8px solid #75166a;
    padding-left: 1.5rem;
}

.section-sub {
    color: #75166a;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.section-center {
    text-align: center;
    border-left: none;
    padding-left: 0;
}

/* === Hero Trust Items === */
.hero-trust {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust-item i {
    color: var(--accent);
}

/* === About Section === */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-visual {
    flex: 1 1 400px;
}

.about-visual-inner {
    background: linear-gradient(135deg, #fce8f4, #fff5fb);
    border-radius: 40px;
    padding: 3rem;
    position: relative;
}

.about-visual-box {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.about-visual-box i {
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.7;
}

.about-visual-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.about-visual-badge:hover {
    background: var(--accent);
}

.about-content {
    flex: 1 1 500px;
}

.about-content .section-header {
    text-align: left;
    margin: 0;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon i {
    color: var(--accent);
}

.about-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.about-feature p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        flex: 1 1 100%;
    }
    
    .about-visual-inner {
        padding: 1.5rem;
        border-radius: 20px;
    }
}

/* === Why Choose Us === */
.why-choose-section {
    background: linear-gradient(135deg, #5a1152 0%, #75166a 100%);
    border-radius: 50px;
    padding: 4rem 3rem;
    margin: 4rem 0;
    color: white;
}

.why-choose-section .section-title {
    color: white;
    border-left-color: #f8c8ec;
}

.why-choose-section .section-sub {
    color: #f8c8ec;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.why-item i {
    font-size: 2.5rem;
    color: #f8c8ec;
    flex-shrink: 0;
}

.why-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.why-item p {
    color: #f8c8ec;
    font-size: 1rem;
}

/* === FAQ Section === */
.faq-section {
    padding: 4rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px #f8c8ec;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: #5a1152;
    transition: 0.2s;
}

.faq-question:hover {
    background: #fdf8fc;
}

.faq-question i {
    transition: 0.3s;
    color: #75166a;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    color: #5a1152;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

/* === Gallery Section === */
.gallery-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    background: #f8e6f6;
    border-radius: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item i {
    font-size: 4rem;
    color: #5a1152;
    opacity: 0.5;
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
}

/* === Buttons === */
.btn-primary {
    background: #5a1152;
    color: white;
    border: none;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    border-radius: 60px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #e31587;
    transform: scale(1.02);
}

.btn-secondary {
    background: white;
    color: #5a1152;
    border: 2px solid #5a1152;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 60px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #5a1152;
    color: white;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

/* === Contact Section === */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-info {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 15px 25px #f8c8ec;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #75166a;
    width: 40px;
    height: 40px;
    background: #fff5fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #5a1152;
}

.contact-item p {
    color: #75166a;
}

.contact-map {
    background: #f8e6f6;
    border-radius: 30px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-map i {
    font-size: 5rem;
    color: #5a1152;
    opacity: 0.5;
}

/* === Footer === */
.footer {
    background: #5a1152;
    color: #c1dff5;
    padding: 3rem 5% 1.5rem;
    margin-top: 5rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-col p {
    margin: 0.5rem 0;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-col i.social {
    font-size: 2rem;
    margin-right: 1rem;
    color: #9bc9ed;
    transition: 0.2s;
}

.footer-col i.social:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #f8c8ec;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* === CTA Banner === */
.cta-banner {
    background: linear-gradient(135deg, #75166a 0%, #5a1152 100%);
    border-radius: 40px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin: 4rem 0;
}

.cta-banner h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f8c8ec;
}

.cta-banner .btn-primary {
    display: inline-flex;
    width: auto;
    background: white;
    color: #5a1152;
}

.cta-banner .btn-primary:hover {
    background: #fff5fb;
}

/* === CTA Enhanced (Full Width) === */
.cta-enhanced {
    background: linear-gradient(135deg, #5a1152 0%, #75166a 50%, #e31587 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
    border-radius: 50%;
}

.cta-enhanced::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,215,0,0.1), transparent 70%);
    border-radius: 50%;
}

.cta-enhanced h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-enhanced p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-enhanced .btn {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-enhanced {
        padding: 3rem 1.5rem;
    }
    
    .cta-enhanced h3 {
        font-size: 1.8rem;
    }
    
    .cta-enhanced p {
        font-size: 1rem;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* === Responsive === */
@media (max-width: 900px) {
    .gallery-item.featured {
        grid-column: span 1;
        grid-row: span 1;
        height: 200px;
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #5a1152;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .why-choose-section {
        border-radius: 30px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.mt-3 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

/* === Video Story Styles === */
.testimonial-card-enhanced.video-story {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: none;
    padding: 0;
    overflow: hidden;
}

.video-story-wrapper {
    position: relative;
    width: 100%;
}

.video-embed-container {
    position: relative;
    width: 100%;
    padding-top: 177.78%; /* 9:16 aspect ratio for reels */
    background: #000;
    max-height: 400px;
    overflow: hidden;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 300px;
    background: #1a1a2e;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #75166a 0%, #e31587 100%);
}

.video-placeholder i {
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(227, 21, 135, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-overlay i {
    font-size: 1.8rem;
    color: white;
    margin-left: 5px;
}

.video-thumbnail:hover .play-overlay {
    background: rgba(117, 22, 106, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-card-enhanced.video-story .video-author {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.3);
}

.video-author .testimonial-author-info h5 {
    color: white;
    margin-bottom: 0.25rem;
}

.video-author .testimonial-author-info span {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .video-embed-container {
        padding-top: 100%;
        max-height: 350px;
    }
    
    .video-thumbnail {
        height: 250px;
    }
}

/* === Pre-Consultation Form Styles === */
/* === Template 3: Floating Card Form === */
.form-t3-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    padding: 4rem 1rem 5rem;
    position: relative;
    overflow: hidden;
}

/* === CTA Consultation Section === */
.cta-consultation-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-consultation-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(117,22,106,0.2), transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

.cta-consultation-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227,21,135,0.15), transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.cta-consultation-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,215,0,0.3);
}

.cta-consultation-section h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-consultation-section h2 strong {
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-consultation-section > .cta-consultation-content > p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.cta-feature i {
    color: #27ae60;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-buttons .btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.cta-note {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-note i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cta-consultation-section {
        padding: 4rem 1.5rem;
    }
    
    .cta-features {
        gap: 1rem;
    }
    
    .cta-feature {
        font-size: 0.85rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

.form-t3-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(117,22,106,0.2), transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.form-t3-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(227,21,135,0.15), transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
}

.form-t3-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-t3-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-t3-header .overline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.form-t3-header .overline::before,
.form-t3-header .overline::after {
    content: '';
    width: 30px;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

.form-t3-header h2 {
    color: white;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.form-t3-header h2 strong {
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-t3-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.form-t3-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    overflow: hidden;
}

.form-t3-progress {
    height: 6px;
    background: #e9ecef;
}

.form-t3-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s ease;
    border-radius: 0 3px 3px 0;
}

.form-t3-content {
    padding: 2.5rem;
}

.form-t3-step {
    display: none;
}

.form-t3-step.active {
    display: block;
    animation: t3FadeIn 0.4s ease;
}

@keyframes t3FadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.step-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(117,22,106,0.3);
}

.step-info h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

.step-info p {
    margin: 0.25rem 0 0;
    color: #888;
    font-size: 0.9rem;
}

/* Gender Grid for Template 3 */
.gender-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.gender-card {
    cursor: pointer;
}

.gender-card input {
    display: none;
}

.gender-card-inner {
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.gender-card:hover .gender-card-inner {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(117,22,106,0.15);
}

.gender-card.selected .gender-card-inner {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(117,22,106,0.08), rgba(227,21,135,0.05));
    box-shadow: 0 8px 25px rgba(117,22,106,0.2);
}

.icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(117,22,106,0.1), rgba(227,21,135,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.gender-card:hover .icon-wrap,
.gender-card.selected .icon-wrap {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.icon-wrap i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.gender-card:hover .icon-wrap i,
.gender-card.selected .icon-wrap i {
    color: white;
}

.gender-card-inner span {
    font-weight: 600;
    color: #555;
    font-size: 1.05rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(117,22,106,0.1);
}

.form-group input.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

/* Yes/No Grid */
.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.yes-no-grid {
    display: grid;
    gap: 0.85rem;
}

.yes-no-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.yes-no-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.yes-no-item span {
    font-size: 0.95rem;
    color: #444;
    font-weight: 500;
}

.toggle-group {
    display: flex;
    gap: 1.25rem;
}

.toggle-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.toggle-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Form Footer */
.form-t3-footer {
    background: #f8f9fa;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.form-t3-footer .btn {
    min-width: 140px;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.btn-submit {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(39,174,96,0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39,174,96,0.4);
}

/* Contact Info Mini */
.contact-info-mini {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 2.5rem auto 0;
}

.contact-info-mini .info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.95);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.contact-info-mini .info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.contact-info-mini .info-card i {
    font-size: 1.6rem;
    color: var(--primary);
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(117,22,106,0.1), rgba(227,21,135,0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-mini .info-card h4 {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-mini .info-card p {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Success/Error Messages */
.consultation-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.consultation-message.success i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.consultation-message.error i {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.consultation-message h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.consultation-message p {
    color: #666;
}

/* Responsive for Template 3 */
@media (max-width: 768px) {
    .form-t3-section {
        padding: 3rem 1rem;
    }
    
    .form-t3-header h2 {
        font-size: 1.6rem;
    }
    
    .form-t3-content {
        padding: 1.5rem;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .step-info h3 {
        font-size: 1.2rem;
    }
    
    .gender-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gender-card-inner {
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .yes-no-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .form-t3-footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .form-t3-footer .btn {
        width: 100%;
    }
    
    .contact-info-mini {
        flex-direction: column;
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .contact-info-mini .info-card {
        width: 100%;
        justify-content: flex-start;
    }
    
    .floating-consultation-btn span {
        display: none;
    }
    
    .floating-consultation-btn {
        width: 55px;
        height: 55px;
        padding: 0;
        justify-content: center;
    }
}

/* === Floating Consultation Button === */
.floating-consultation-btn {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 999;
    background: linear-gradient(135deg, #75166a, #e31587);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(117, 22, 106, 0.4);
    transition: all 0.3s ease;
    animation: float-bounce 3s ease-in-out infinite;
}

.floating-consultation-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(117, 22, 106, 0.5);
    color: white;
}

.floating-consultation-btn i {
    font-size: 1.2rem;
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Pulsing CTA Button */
.pulse-btn {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(227, 21, 135, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(227, 21, 135, 0.6); }
}
