/* ==================== BABY GROWTH CHART STYLES ==================== */

/* Hero Section */
.visly-growth-hero-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.visly-growth-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.visly-growth-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.2);
}

.visly-growth-hero-content h1 {
    font-size: 32px;
    color: #2e3482;
    margin-bottom: 20px;
    font-weight: 700;
}

.visly-growth-hero-content p {
    font-size: 18px;
    color: #53589a;
    line-height: 1.8;
}

/* Form Section */
.visly-growth-form-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fae7f0 0%, #fff5f8 100%);
}

.visly-growth-form-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 60px rgba(46, 52, 130, 0.08);
    border: 1px solid rgba(46, 52, 130, 0.1);
}

.visly-growth-form-card h2 {
    text-align: center;
    font-size: 24px;
    color: #2e3482;
    margin-bottom: 40px;
    font-weight: 600;
}

.visly-growth-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.visly-growth-form-group {
    display: flex;
    flex-direction: column;
}

.visly-growth-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #2e3482;
    margin-bottom: 12px;
    font-weight: 500;
}

.visly-growth-label i {
    font-size: 20px;
    color: #FFB6C1;
}

.visly-growth-gender-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.visly-growth-gender-btn {
    padding: 18px 20px;
    background: #fff5f8;
    border: 2px solid #fff5f8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #2e3482;
    font-weight: 500;
}

.visly-growth-gender-btn i {
    font-size: 28px;
    color: #FFB6C1;
    transition: all 0.3s ease;
}

.visly-growth-gender-btn:hover {
    background: #fff5f8;
    transform: translateY(-2px);
}

.visly-growth-gender-btn.active {
    background: linear-gradient(135deg, #2e3482 0%, #53589a 100%);
    border-color: #2e3482;
    color: #fff;
}

.visly-growth-gender-btn.active i {
    color: #fff;
}

.visly-growth-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #fae7f0;
    border-radius: 10px;
    background: #fae7f0;
    color: #2e3482;
    transition: all 0.3s ease;
    font-family: inherit;
}

.visly-growth-input::-webkit-outer-spin-button,
.visly-growth-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.visly-growth-input {
    -moz-appearance: textfield;
}

.visly-growth-input:focus {
    outline: none;
    border-color: #FFB6C1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

.visly-growth-input::placeholder {
    color: #a0a0c8;
}

.visly-growth-submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff5a8a 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
}

.visly-growth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 107, 157, 0.4);
}

.visly-growth-submit-btn:active {
    transform: translateY(0);
}

.visly-growth-submit-btn i {
    font-size: 20px;
}

.visly-growth-info-text {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #fae7f0;
}

.visly-growth-info-text p {
    font-size: 15px;
    color: #53589a;
    line-height: 1.7;
    margin-bottom: 15px;
}

.visly-growth-note {
    font-size: 13px !important;
    color: #7a7da8 !important;
}

.visly-growth-info-text a {
    color: #2e3482;
    text-decoration: none;
    font-weight: 500;
}

.visly-growth-info-text a:hover {
    text-decoration: underline;
}

/* Results Section */
.visly-growth-results-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fae7f0 0%, #fff5f8 100%);
}

.visly-growth-results-section.hidden {
    display: none;
}

.visly-growth-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.visly-growth-results-header h2 {
    font-size: 26px;
    color: #2e3482;
    font-weight: 600;
}

.visly-growth-chart-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.visly-growth-tab-btn {
    padding: 15px 30px;
    background: #fff;
    border: 2px solid #e0e0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #2e3482;
    font-weight: 500;
}

.visly-growth-tab-btn i {
    font-size: 22px;
    color: #FFB6C1;
    transition: all 0.3s ease;
}

.visly-growth-tab-btn:hover {
    border-color: #FFB6C1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.2);
}

.visly-growth-tab-btn.active {
    background: linear-gradient(135deg, #2e3482 0%, #53589a 100%);
    border-color: #2e3482;
    color: #fff;
}

.visly-growth-tab-btn.active i {
    color: #fff;
}

.visly-growth-chart-container {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(46, 52, 130, 0.08);
}

.visly-growth-chart-container canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 600px;
    min-height: 400px;
}

.visly-growth-result-message {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.visly-growth-result-message p {
    font-size: 18px;
    color: #2e3482;
    line-height: 1.7;
    margin-bottom: 15px;
}

#visly-growth-percentile-text {
    font-weight: 600;
    font-size: 20px;
    color: #FFB6C1;
}

.visly-growth-disclaimer {
    font-size: 16px !important;
    color: #53589a !important;
}

.visly-growth-read-note {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 24px;
    background: transparent;
    color: #2e3482;
    border: 2px solid #2e3482;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.visly-growth-read-note:hover {
    background: #2e3482;
    color: #fff;
    transform: translateY(-2px);
}

.visly-growth-recalculate-section {
    text-align: center;
}

.visly-growth-recalculate-btn {
    padding: 15px 40px;
    background: #fff;
    color: #2e3482;
    border: 2px solid #2e3482;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visly-growth-recalculate-btn:hover {
    background: #2e3482;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 52, 130, 0.3);
}

/* Information Section */
.visly-growth-info-section {
    padding: 60px 0;
    background: #fff;
}

.visly-growth-info-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visly-growth-accordion-item {
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.visly-growth-accordion-item:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(83, 88, 154, 0.08);
}

.visly-growth-accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: none;
    color: #2e3482;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.visly-growth-accordion-header span {
    flex: 1;
}

.visly-growth-accordion-toggle {
    font-size: 1.5rem;
    color: #2e3482;
    transition: transform 0.4s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.visly-growth-accordion-item.active .visly-growth-accordion-header {
    color: #2e3482;
}

.visly-growth-accordion-item.active .visly-growth-accordion-toggle {
    transform: rotate(45deg);
    color: #FFB6C1;
}

.visly-growth-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.visly-growth-accordion-item.active .visly-growth-accordion-content {
    padding-top: 20px;
    padding-bottom: 30px;
}   

.visly-growth-accordion-inner p {
    font-size: 16px;
    color: #53589a;
    line-height: 1.8;
    margin: 0;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .visly-growth-hero-grid {
        gap: 40px;
    }
    
    .visly-growth-chart-container {
        padding: 25px;
    }
}

@media screen and (max-width: 768px) {
    .visly-growth-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .visly-growth-hero-content h1 {
        font-size: 26px;
    }
    
    .visly-growth-hero-content p {
        font-size: 16px;
    }
    
    .visly-growth-form-card {
        padding: 30px 20px;
    }
    
    .visly-growth-form-card h2 {
        font-size: 20px;
    }
    
    .visly-growth-chart-tabs {
        align-items: stretch;
        gap: 15px;
    }
    
    .visly-growth-tab-btn {
        justify-content: center;
    }
    
    .visly-growth-chart-container {
        padding: 20px;
    }
    
    .visly-growth-results-header h2 {
        font-size: 22px;
    }
    
    .visly-growth-accordion-header {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .visly-growth-accordion-toggle {
        font-size: 1.25rem;
        margin-left: 12px;
    }
    
    .visly-growth-accordion-content {
        padding: 0 20px;
    }
}

@media screen and (max-width: 480px) {
    .visly-growth-hero-section,
    .visly-growth-form-section,
    .visly-growth-results-section,
    .visly-growth-info-section {
        padding: 40px 0;
    }
    
    .visly-growth-hero-content h1 {
        font-size: 22px;
    }
    
    .visly-growth-form-card h2 {
        font-size: 18px;
    }
    
    .visly-growth-gender-btns {
        grid-template-columns: 1fr 1fr;
    }
    
    .visly-growth-submit-btn {
        font-size: 16px;
        padding: 15px 30px;
    }
    
    .visly-growth-results-header h2 {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .visly-growth-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .visly-growth-chart-tabs {
        flex-direction: column;
    }
    
    .visly-growth-chart-container {
        padding: 10px;
        margin: 0 -15px 40px;
        border-radius: 0;
        overflow-x: auto;
    }
    
    .visly-growth-chart-container canvas {
        min-height: 280px !important;
        max-height: 350px !important;
        width: 100% !important;
    }
    
    #visly-growth-percentile-text {
        font-size: 16px;
    }
    
    .visly-growth-result-message p {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .visly-growth-accordion-header {
        padding: 14px 16px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .visly-growth-accordion-toggle {
        font-size: 1.2rem;
        margin-left: 8px;
    }
    
    .visly-growth-accordion-content {
        padding: 0 16px;
    }
    
    .visly-growth-accordion-inner p {
        font-size: 15px;
    }
}