:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --success-color: #16a34a;
    --warning-color: #ea580c;
    --danger-color: #dc2626;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.partnership-notice {
    background: var(--bg-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.notice-wrapper {
    text-align: center;
    position: relative;
}

.notice-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 0.875rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: white;
}

.notice-content:hover {
    transform: translateY(-2px);
}

.notice-badge {
    flex-shrink: 0;
}

.badge-text {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-message {
    flex-grow: 1;
    text-align: left;
}

.notice-message h3 {
    margin: 0 0 0.125rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.notice-message p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.contact-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.contact-btn:hover {
    background: #f9f9f9;
    transform: scale(1.05);
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 2rem 0;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

main {
    padding-bottom: 4rem;
}

.calculator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.calculator-card, .info-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.calculator-card h2, .info-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculate-btn:active {
    transform: translateY(0);
}

.result-full-section {
    margin: 3rem 0;
    animation: fadeIn 0.5s ease;
}

.result-full-section.hidden {
    display: none;
}

.result-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.result-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 2rem;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-main {
    text-align: center;
}

.result-value {
    margin-bottom: 1rem;
}

.result-value span {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-category {
    margin-bottom: 1rem;
}

.result-category span {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.25rem;
}

.result-category.underweight span {
    background-color: #dbeafe;
    color: #1e40af;
}

.result-category.normal span {
    background-color: #dcfce7;
    color: #16a34a;
}

.result-category.overweight span {
    background-color: #fed7aa;
    color: #ea580c;
}

.result-category.obese span {
    background-color: #fee2e2;
    color: #dc2626;
}

.kmi-visual {
    padding: 1rem 1rem 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.kmi-scale {
    position: relative;
    height: 80px;
}

.scale-track {
    position: relative;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, 
        #60a5fa 0%, 
        #60a5fa 22%,
        #4ade80 28%, 
        #4ade80 57%,
        #fb923c 63%, 
        #fb923c 77%,
        #f87171 83%, 
        #f87171 100%);
    display: flex;
}

.scale-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    background: transparent;
}

.scale-label {
    position: absolute;
    top: -22px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.scale-value {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.indicator-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
}

.kmi-indicator {
    position: absolute;
    top: -10px;
    transition: left 0.5s ease;
}

.indicator-arrow {
    font-size: 1.5rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1;
}


.result-description {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid;
    border-left-color: var(--primary-color);
}

.result-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.result-full-section.underweight .result-description {
    border-left-color: #60a5fa;
}

.result-full-section.normal .result-description {
    border-left-color: #4ade80;
}

.result-full-section.overweight .result-description {
    border-left-color: #fb923c;
}

.result-full-section.obese .result-description {
    border-left-color: #f87171;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
    transition: transform 0.2s ease;
}

.category-item:hover {
    transform: translateX(5px);
}

.category-item.underweight {
    border-color: #dbeafe;
    background-color: #f0f9ff;
}

.category-item.normal {
    border-color: #dcfce7;
    background-color: #f0fdf4;
}

.category-item.overweight {
    border-color: #fed7aa;
    background-color: #fff7ed;
}

.category-item.obese {
    border-color: #fee2e2;
    background-color: #fef2f2;
}

.category-range {
    font-weight: 600;
    font-size: 1.125rem;
}

.category-name {
    color: var(--text-light);
}

.content-section {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content-section strong {
    color: var(--text-color);
}

footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.contact-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.contact-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.contact-info {
    font-size: 0.95rem;
}

.email-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .notice-content {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .notice-message {
        text-align: center;
    }
    
    .notice-message h3 {
        font-size: 1rem;
    }
    
    .notice-message p {
        font-size: 0.75rem;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 180px;
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .calculator-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .calculator-card, .info-card, .result-card {
        padding: 1.5rem;
    }
    
    .content-section {
        padding: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
    }
    
    .result-value span {
        font-size: 3rem;
    }
    
    .kmi-visual {
        padding: 0.75rem 0.5rem 0.25rem 0.5rem;
    }
    
    .scale-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .calculator-card, .info-card {
        padding: 1.25rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .content-section ul {
        margin-left: 1.5rem;
    }
}