/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #3d4957;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

.hidden {
    display: none !important;
}

/* Container Styles */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-small {
    max-width: 896px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-medium {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e9ed;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* Logo Styles */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.logo-link:hover .logo-icon {
    transform: scale(1.1);
}

.logo-icon {
    color: #5BA3E0;
    transition: transform 0.2s;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #3d4957;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #3d4957;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #5BA3E0;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #3d4957;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.dropdown-btn:hover {
    color: #5BA3E0;
}

.dropdown-icon {
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 14rem;
    background-color: #ffffff;
    border: 1px solid #e5e9ed;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f7f9;
}

.dropdown-item svg {
    color: #5BA3E0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    color: #3d4957;
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.mobile-menu.active {
    max-height: 24rem;
    opacity: 1;
    padding-bottom: 1rem;
}

.mobile-nav-link {
    display: block;
    color: #3d4957;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: #5BA3E0;
}

.mobile-tools-section {
    border-top: 1px solid #e5e9ed;
    padding-top: 0.5rem;
    margin-top: 0.75rem;
}

.mobile-tools-header {
    color: #6b7684;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.5rem 0.5rem;
}

.mobile-tool-link {
    display: block;
    color: #3d4957;
    padding: 0.5rem 0 0.5rem 1rem;
    transition: color 0.2s;
}

.mobile-tool-link:hover {
    color: #5BA3E0;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom right, 
        rgba(91, 163, 224, 0.1), 
        rgba(178, 219, 240, 0.2), 
        rgba(91, 163, 224, 0.05));
    padding: 3rem 0;
}

.hero-content {
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3d4957;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7684;
    font-weight: 500;
}

.hero-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #6b7684;
    flex-wrap: wrap;
}

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

.feature-icon {
    color: #5BA3E0;
}

/* Calculator Section */
.calculator-section {
    padding: 3rem 0;
}

.calculator-card {
    background-color: #ffffff;
    border: 1px solid #e5e9ed;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.calculator-header {
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calculator-icon-wrapper {
    background-color: rgba(91, 163, 224, 0.1);
    border-radius: 9999px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-icon {
    color: #5BA3E0;
}

.calculator-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #3d4957;
}

.calculator-body {
    padding: 0 2.5rem 2.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d4957;
    margin-bottom: 0.5rem;
}

.required {
    color: #e74c3c;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e9ed;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    color: #3d4957;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #5BA3E0;
    box-shadow: 0 0 0 3px rgba(91, 163, 224, 0.1);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7684;
    pointer-events: none;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7684;
    margin-top: 0.5rem;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    background-color: #5BA3E0;
    color: #ffffff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 1.125rem;
}

.calculate-btn:hover {
    background-color: #4a92cf;
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.calculate-btn:active {
    transform: scale(0.98);
}

/* Results Section */
.results-section {
    margin-top: 1.5rem;
    animation: slideUp 0.3s ease-out;
}

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

.results-card {
    background: linear-gradient(to bottom right, 
        rgba(91, 163, 224, 0.05), 
        rgba(178, 219, 240, 0.1));
    border: 2px solid rgba(91, 163, 224, 0.2);
    border-radius: 0.75rem;
}

.results-content {
    padding: 2rem;
}

.results-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #3d4957;
    margin-bottom: 1rem;
}

.results-title svg {
    color: #5BA3E0;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-box {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-label {
    font-size: 0.875rem;
    color: #6b7684;
    margin-bottom: 0.25rem;
}

.result-value-large {
    font-size: 1.875rem;
    font-weight: 700;
    color: #5BA3E0;
    font-family: 'Poppins', sans-serif;
}

.result-value-large:nth-of-type(2) {
    color: #3d4957;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7684;
    margin-top: 0.5rem;
}

/* Progress Bar */
.progress-section {
    margin-top: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7684;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    background-color: #f5f7f9;
    border-radius: 9999px;
    height: 0.75rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #5BA3E0, #e8906b);
    transition: width 0.5s ease;
}

/* Timeline */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: center;
}

.timeline-box {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.timeline-label {
    font-size: 0.75rem;
    color: #6b7684;
}

.timeline-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d4957;
}

.timeline-value.primary {
    color: #5BA3E0;
}

/* Share Section */
.share-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(107, 118, 132, 0.1);
}

.share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7684;
    margin-bottom: 0.75rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.share-btn svg {
    flex-shrink: 0;
}

.share-btn.whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

.share-btn.whatsapp:hover {
    background-color: #20BD5A;
}

.share-btn.telegram {
    background-color: #0088cc;
    color: #ffffff;
}

.share-btn.telegram:hover {
    background-color: #0077b3;
}

.share-btn.facebook {
    background-color: #1877f2;
    color: #ffffff;
}

.share-btn.facebook:hover {
    background-color: #1664d8;
}

.share-btn:active {
    transform: scale(0.95);
}

.save-result-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    background-color: #5BA3E0;
    color: #ffffff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.save-result-btn:hover {
    background-color: #4a8bc9;
}

.save-result-btn:active {
    transform: scale(0.98);
}

.save-result-btn svg {
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    padding: 2rem 0 3rem;
}

.cta-card {
    background: linear-gradient(to right, rgba(232, 144, 107, 0.9), #e8906b);
    border: 2px solid rgba(232, 144, 107, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cta-content {
    padding: 2.5rem;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.cta-badge svg {
    color: #ffffff;
}

.cta-badge span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #5BA3E0;
    color: #ffffff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background-color: #4a8bc9;
    transform: scale(1.05);
}

.cta-btn:active {
    transform: scale(0.95);
}

.cta-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

/* Content Section */
.content-section {
    padding: 3rem 0 5rem;
    background-color: rgba(245, 247, 249, 0.3);
}

.content-article {
    margin-bottom: 4rem;
}

.article-content {
    display: flex;
    gap: 1rem;
}

.article-content.full-width {
    flex-direction: column;
}

.article-icon {
    background-color: rgba(91, 163, 224, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
    height: fit-content;
}

.article-icon svg {
    color: #5BA3E0;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #3d4957;
    margin-bottom: 1rem;
}

.article-text {
    color: #6b7684;
    font-size: 1.125rem;
}

.article-text p {
    margin-bottom: 1rem;
}

.article-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.article-list svg {
    color: #5BA3E0;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.full-width {
    width: 100%;
}

/* Stages Grid */
.stages-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stage-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.stage-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stage-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stage-number {
    background-color: rgba(91, 163, 224, 0.1);
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #5BA3E0;
}

.stage-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3d4957;
}

.stage-text {
    color: #6b7684;
}

/* Signs Grid */
.signs-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.sign-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem;
}

.sign-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #3d4957;
    margin-bottom: 0.5rem;
}

.sign-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #5BA3E0;
    margin-right: 0.5rem;
}

.sign-text {
    font-size: 0.875rem;
    color: #6b7684;
}

/* Care Tips Card */
.care-tips-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.care-tip {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.care-tip:last-child {
    margin-bottom: 0;
}

.care-tip-icon {
    background-color: rgba(91, 163, 224, 0.1);
    border-radius: 9999px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.care-tip-icon svg {
    color: #5BA3E0;
}

.care-tip-title {
    font-size: 1rem;
    font-weight: 600;
    color: #3d4957;
    margin-bottom: 0.5rem;
}

.care-tip-text {
    color: #6b7684;
}

/* FAQ Styles */
.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e5e9ed;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: rgba(245, 247, 249, 0.3);
}

.faq-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #3d4957;
    padding-right: 1rem;
}

.faq-icon {
    color: #5BA3E0;
    transition: transform 0.3s;
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 24rem;
    opacity: 1;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #6b7684;
}

/* Footer Styles */
.footer {
    background-color: #3d4957;
    color: #ffffff;
    padding: 3rem 0 4rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo {
    color: #5BA3E0;
}

.footer-brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #5BA3E0;
}

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

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.social-link:hover {
    color: #5BA3E0;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .nav-content {
        height: 80px;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .container-small {
        padding: 0 2rem;
    }
    
    .container-medium {
        padding: 0 2rem;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .calculator-section {
        padding: 4rem 0;
    }
    
    .calculator-header {
        padding: 2.5rem;
    }
    
    .calculator-body {
        padding: 0 2.5rem 2.5rem;
    }
    
    .calculator-title {
        font-size: 1.875rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content {
        padding: 2.5rem;
    }
    
    .cta-title {
        font-size: 1.875rem;
    }
    
    .content-section {
        padding: 5rem 0;
    }
    
    .article-title {
        font-size: 2.25rem;
    }
    
    .results-content {
        padding: 2rem;
    }
    
    .footer {
        padding: 4rem 0;
    }
}
