/* 
* CrClCalculator.Net Styles
* A professional medical calculator website
* Created: April 2025
*/

/* Base Styles and Variables */
:root {
    --primary-color: #1a8cff;
    --secondary-color: #00b386;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --button-radius: 6px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
  }
  
  .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  
  .logo-text-main {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark-color);
    margin-left: 10px;
    
  }
  
  .logo-text-highlight {
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-left: 4px;
    
  }
  
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #0066cc;
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

button, .button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    border-radius: var(--button-radius);
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    border-radius: var(--border-radius);
}

section {
    padding: 4rem 0;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 4px;
    background: transparent;
}

.progress-bar {
    height: 4px;
    background: var(--secondary-color);
    width: 0%;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--button-radius);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Calculator Section */
.calculator-section {
    background-color: white;
    padding: 4rem 0;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.calculator-form {
    flex: 1;
    min-width: 300px;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.toggle-container {
    background: white;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.toggle-container input[type="radio"] {
    display: none;
}

.toggle-btn {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: var(--transition);
    font-weight: 500;
}

input[type="radio"]:checked + .toggle-btn {
    background-color: var(--secondary-color);
    color: black;
}

.toggle-btn:hover {
    background-color: #f0f0f0;
}

input[type="radio"]:checked + .toggle-btn:hover {
    background-color: #009980;
}

.input-with-unit {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.input-with-unit input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.input-with-unit input:focus {
    box-shadow: 0 0 0 2px rgba(26, 140, 255, 0.2);
}

.unit-label {
    padding: 0 0.8rem;
    
    color: var(--secondary-color);
    font-weight: 500;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.unit-toggle-wrapper {
    display: flex;
    align-items: center;
    
}

.unit-switch {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: var(--button-radius);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.unit-switch:hover {
    background-color: #0066cc;
    transform: translateY(-1px);
}

.info-box {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}


.info-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-box a {
    font-weight: 600;
    color: var(--primary-color);
}

.calculate-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--button-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculate-button:hover {
    background-color: #009973;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.result-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.result-unit {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.result-interpretation {
    padding: 6.5px;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-weight: 500;
}

.bmi-result {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-weight: 500;
    background-color: #e3f2fd;
    color: #0d47a1;
}

.normal {
    background-color: #d4edda;
    color: #155724;
}

.mild {
    background-color: #fff3cd;
    color: #856404;
}

.moderate {
    background-color: #ffe5d0;
    color: #fd7e14;
}

.severe {
    background-color: #f8d7da;
    color: #721c24;
}

.formula-note {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #ffc107;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

.formula-cards {
    margin-top: 2rem;
}

.formula-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.formula-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.formula p {
    margin-bottom: 0.5rem;
}

/* Trust Section */
.trust-section {
    background-color: white;
}

.trust-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
}

.developer-info, .supervisor-info {
    flex: 1;
    min-width: 300px;
}

.developer, .supervisor {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.developer-image, .supervisor-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    box-shadow: var(--shadow);
}

.developer-image img, .supervisor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.developer-details h4, .supervisor-details h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

/* How it Works Section */
.how-it-works-section {
    background-color: #e3f2fd;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

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

.step-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* References Section */
.references-section {
    background-color: #f8f9fa;
}

.references-list {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.references-list p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    background-color: white;
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: #f8f9fa;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 140, 255, 0.2);
    background-color: white;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--button-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 1rem;
}

.submit-button:hover {
    background-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}



/* Contact Form Success Message and Loading Animation */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-message i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: #28a745;
}

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

.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: white;
}

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

.footer-info {
    text-align: center;
}

.footer-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Media Queries */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
        backdrop-filter: blur(10px); /* Applies background blur */
        background-color: rgba(255, 255, 255, 0.2); /* Light transparent background */
        -webkit-backdrop-filter: blur(10px); /* For Safari */
        border-radius: var(--border-radius);
        padding: 10px 20px;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .calculator-container,
    .trust-content,
    .steps-container {
        flex-direction: column;
    }
    
    .result-container {
        margin-top: 2rem;
    }
    
    .step-card {
        margin-bottom: 1rem;
    }
    
    .calculator-section {
        padding: 2rem 0;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
    
    .toggle-container {
        max-width: 100%;
    }
    
    .input-with-unit {
        max-width: 100%;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .calculator-container,
    .formula-card,
    .contact-form {
        padding: 1.25rem;
    }
    
    .result-value {
        font-size: 2.5rem;
    }
    
    .unit-label {
        min-width: 50px;
        font-size: 0.9rem;
    }
    
    .form-row label {
        font-size: 0.95rem;
    }
    
    .info-box p {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer-links li {
        margin: 0.5rem;
    }
    
    .form-row {
        margin-bottom: 1.25rem;
    }
    
    .calculate-button, 
    .submit-button, 
    .cta-button {
        padding: 0.7rem 1.2rem;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .toggle-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.95rem;
    }
    
    .input-with-unit input {
        padding: 0.7rem;
    }
    
    .unit-label {
        font-size: 0.9rem;
    }
    
    .calculate-button {
        padding: 0.75rem 1rem;
    }
    
    .result-value {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92%;
        padding: 0 0.5rem;
    }
    
    .calculator-container {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .toggle-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .unit-switch {
        width: 28px;
        height: 28px;
        margin: 0 0.25rem;
    }
    
    .result-value {
        font-size: 2.2rem;
    }
    
    .result-interpretation, 
    .bmi-result {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .formula-card, 
    .references-list {
        padding: 1.25rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
    
    .developer-image, 
    .supervisor-image {
        width: 60px;
        height: 60px;
    }
}

/* Additional Styling for Professional Look */

/* Input focus and validation styles */
.input-with-unit input:focus {
    box-shadow: 0 0 0 2px rgba(26, 140, 255, 0.3);
    background-color: #f9fbff;
}

.input-with-unit input.invalid {
    border: 1px solid #dc3545;
    background-color: #fff8f8;
}

/* Button active state for better touch feedback */
.calculate-button:active,
.submit-button:active,
.cta-button:active,
.unit-switch:active,
.unit-switch.active {
    transform: scale(0.97);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Result highlight animation */
@keyframes highlight {
    0% { color: var(--primary-color); }
    50% { color: var(--secondary-color); }
    100% { color: var(--primary-color); }
}

.result-value.highlight {
    animation: highlight 1s ease;
}

/* Card hover effects */
.formula-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Improved toggle buttons */
.sex-toggle {
    position: relative;
    display: flex;
    width: 100%;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    gap: 0;
}

.sex-toggle .toggle-btn {
    flex: 1;
    text-align: center;
    padding: 1rem 0;
    cursor: pointer;
    background: #f5f5f5;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: background 0.2s, color 0.2s;
    color: #222;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    margin: 0 2px;
}

.sex-toggle .toggle-btn:first-of-type {
    margin-left: 0;
}

.sex-toggle .toggle-btn:last-of-type {
    margin-right: 0;
}

.sex-toggle input[type="radio"]:checked + .toggle-btn {
    background: var(--secondary-color, #00b386);
    color: #fff;
    border: 2px solid var(--secondary-color, #00b386);
    box-shadow: 0 2px 8px rgba(0,179,134,0.10);
}

.sex-toggle .toggle-indicator {
    display: none;
}

/* Enhanced form elements */
.form-row label {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.input-with-unit {
    transition: all 0.3s ease;
}

.input-with-unit:focus-within {
    box-shadow: 0 0 0 2px rgba(26, 140, 255, 0.2);
}

/* Improved calculator container */
.calculator-container {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Enhanced result container */
.result-container {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.result-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Improved mobile styles */
@media (max-width: 768px) {
    .calculator-container {
        background: linear-gradient(to bottom, #ffffff, #f7f9fa);
    }
    
    .toggle-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .result-container {
        margin-top: 2rem;
    }
    
    /* Improved mobile menu */
    .nav-links {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }
    
    .nav-links a:hover {
        background-color: #f8f9fa;
    }
}

/* Small screen optimizations */
@media (max-width: 480px) {
    .unit-label {
        padding: 0 0.5rem;
    }
    
    .form-row {
        margin-bottom: 1rem;
    }
    
    .info-box {
        padding: 0.75rem;
    }
    
    .calculate-button {
        margin-top: 0.5rem;
    }
    
    /* Adjust spacing for small screens */
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero h1 {
        margin-bottom: 1rem;
    }
    
    .hero p {
        margin-bottom: 1.5rem;
    }
    
    /* Fix for iOS height issues */
    .hero {
        min-height: calc(100vh - 70px);
        min-height: 250px;
        display: flex;
        align-items: center;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .input-with-unit input {
        font-size: 16px; /* Prevent zoom on focus */
    }
    
    .toggle-btn {
        -webkit-tap-highlight-color: transparent;
    }
    
    .unit-switch {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .contact-info-item {
        display: block;
        margin: 0 0 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.25rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .submit-button {
        padding: 0.7rem 1.2rem;
    }
}

/* New action buttons and result-actions container styles */
.action-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--button-radius);
    padding: 0.5rem 1.2rem;
    margin-right: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.action-btn:last-child { margin-right: 0; }

.action-btn:hover, .action-btn:focus {
    background-color: #009973;
    outline: none;
}

.result-actions {
    margin: 1rem 0 0.5rem 0;
    display: flex;
    gap: 0.5rem;
}

/* --- Professional Result Card Styles --- */
.pro-result-card {
    background: var(--secondary-color, #009980);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 2.2rem 2rem 1.5rem 2rem;
    margin: 2rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 300px;
    max-width: 600px;
    width: 100%;
}
.pro-result-main {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}
.pro-result-value {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    margin-right: 0.2rem;
}
.pro-result-unit {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 0.5rem;
}
.pro-result-desc {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.97;
}
.pro-result-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}
.pro-action-btn {
    background: #fff;
    color: var(--secondary-color, #009980);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.pro-action-btn:hover, .pro-action-btn:focus {
    background: #e6f7f2;
    color: #007d62;
    box-shadow: 0 4px 12px rgba(0,179,134,0.18);
}
.btn-icon {
    font-size: 1.1em;
    display: inline-block;
}
.pro-result-interpretation {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}
.bmi-result {
    background: #e3f2fd;
    color: #0d47a1;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 500;
    width: 100%;
}
/* --- End Professional Result Card Styles --- */

.tabs-container {
    background-color: #e3f2fd;
    max-width: var(--container-width);
    width:90%;
    margin: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 4%;
  }

  .tabs-header {
    display: flex;
    border-bottom: 2px solid #eee;
  }

  .tab-button {
    flex: 1;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #444;
    position: relative;
    transition: color 0.3s ease;
  }

  .tab-button.active {
    color: var(--secondary-color);
  }

  .tab-button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30%;
    width: 40%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 4px;
  }

  .tab-content {
    display: none;
    padding: 24px;
    animation: fade 0.4s ease-in-out;
  }

  .tab-content.active {
    display: block;
  }

  @keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @media (max-width: 600px) {
    .tab-button {
      font-size: 14px;
      padding: 12px;
    }
  }


.pro-info-box{
    color: var(--dark-color);
    margin-top: 50px;
}

.ckd-table-wrapper {
  overflow-x: auto;
  margin: 2rem auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(162, 153, 179, 0.2);
}

.ckd-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
}

.ckd-table th,
.ckd-table td {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: left;
}

.ckd-table thead {
  background-color: #a299b3;
  color: #fff;
}

.ckd-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Category Colors */
.ckd-table td.normal {
  color: #228B22; /* Green */
  font-weight: bold;
}

.ckd-table td.mild {
  color: #1E90FF; /* Blue */
  font-weight: bold;
}

.ckd-table td.moderate {
  color: #FFA500; /* Orange */
  font-weight: bold;
}

.ckd-table td.severe {
  color: #FF4500; /* Red-Orange */
  font-weight: bold;
}

.ckd-table td.failure {
  color: #B22222; /* Firebrick Red */
  font-weight: bold;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .ckd-table th, .ckd-table td {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
}

.ckd-table a {
  text-decoration: none;
  color: inherit;
}

.ckd-table a:hover {
  text-decoration: underline;
  color: #99ada1; /* Soft green from your brand palette */
}
/* CSS Styling */
.step-guide {
  background: #f8f9fb;
  padding: 60px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.step-guide .container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #1e2e3e;
  margin-bottom: 40px;
  font-weight: 600;
  text-align: left;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.step {
  background: #ffffff;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.step:hover {
  transform: translateY(-5px);
}

.step-number {
  background: #28a745;
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  margin: 0 auto 20px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
}

.step h3 {
  font-size: 1.2rem;
  color: #1e2e3e;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
  color: #4b5a67;
}
.responsive-gif-video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
}

