:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

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

nav h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Features */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

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

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

/* Diagnosis Section */
.diagnosis {
    padding: 4rem 0;
}

.diagnosis h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

#diagnosis-content {
    max-width: 800px;
    margin: 0 auto;
}

.question {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question h4 {
    margin-bottom: 1rem;
}

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

.option {
    padding: 1rem;
    background-color: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    position: relative;
}

.option:hover,
.option:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.option.selected {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.option-number {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.option.selected .option-number {
    color: var(--white);
}

/* キーボードナビゲーション用のヒント */
.diagnosis-keyboard-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.diagnosis-keyboard-hint code {
    background-color: var(--gray-light);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

/* 診断結果画面のスタイル */
.diagnosis-result {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.skin-type-result h3 {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.skin-type-badge {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.result-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* 回答履歴セクション */
.answer-summary {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.answer-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.answer-list {
    display: grid;
    gap: 0.75rem;
}

.answer-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.question-number {
    background-color: var(--primary-color);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.answer-content {
    flex: 1;
}

.answer-question {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.answer-value {
    font-weight: bold;
    color: var(--text-color);
}

/* 推奨理由セクション */
.recommendation-reason {
    background-color: #e3f2fd;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.reason-content {
    line-height: 1.8;
    color: var(--text-color);
}

/* スコア内訳セクション */
.diagnosis-score {
    margin-bottom: 2rem;
}

.diagnosis-score h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.score-breakdown {
    display: grid;
    gap: 1.5rem;
}

.score-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.score-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.score-bar {
    width: 100%;
    height: 24px;
    background-color: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: width 0.6s ease;
    border-radius: 12px;
}

.score-value {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.score-description {
    font-size: 0.9rem;
    color: var(--gray);
}

/* おすすめスキンケアセクション */
.recommendations {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.recommendation-list {
    list-style: none;
    padding: 0;
}

.recommendation-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
}

.recommendation-list li:last-child {
    border-bottom: none;
}

.recommendation-icon {
    color: var(--success);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* 製品カテゴリーセクション */
.product-suggestions {
    margin-bottom: 2rem;
}

.product-suggestions h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.category-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* アクションボタン */
.diagnosis-result .actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.secondary-button {
    background-color: var(--gray-light);
    color: var(--text-color);
}

.secondary-button:hover {
    background-color: var(--gray);
    color: var(--white);
    transform: translateY(-2px);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .diagnosis-result {
        padding: 2rem 1rem;
    }
    
    .answer-item {
        flex-direction: column;
        text-align: center;
    }
    
    .question-number {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
    }
    
    .diagnosis-result .actions {
        flex-direction: column;
    }
    
    .primary-button,
    .secondary-button {
        width: 100%;
    }
}

/* Ingredient Checker */
.ingredient-checker {
    padding: 4rem 0;
    background-color: var(--white);
}

.ingredient-checker h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.ingredient-input {
    max-width: 600px;
    margin: 0 auto;
}

#ingredientInput {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

#analyzeIngredients {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#analyzeIngredients:hover {
    background-color: #45b7aa;
}

#ingredientResults {
    margin-top: 2rem;
}

.ingredient-item {
    background-color: var(--bg-color);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.safety-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: bold;
}

.safety-high {
    background-color: var(--success);
    color: var(--white);
}

.safety-medium {
    background-color: var(--warning);
    color: var(--text-color);
}

.safety-low {
    background-color: var(--danger);
    color: var(--white);
}

/* Forms */
.contact-form {
    padding: 4rem 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.required {
    color: var(--danger);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.submit-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #ff5252;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.form-message.success {
    background-color: var(--success);
    color: var(--white);
}

.form-message.error {
    background-color: var(--danger);
    color: var(--white);
}

/* Legal Content */
.legal-content {
    padding: 4rem 0;
}

.legal-content .section {
    margin-bottom: 2rem;
}

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

.legal-content ul {
    margin-left: 2rem;
}

.update-info {
    text-align: center;
    color: var(--gray);
    margin-top: 3rem;
}

/* Guide Content */
.guide-content {
    padding: 4rem 0;
}

.step {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.tips {
    background-color: #e3f2fd;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Spec Content */
.spec-content {
    padding: 4rem 0;
}

.spec-content .section {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: bold;
}

.status.implemented {
    background-color: var(--success);
    color: var(--white);
}

.status.pending {
    background-color: var(--warning);
    color: var(--text-color);
}

/* FAQ */
.faq details {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 4px;
}

.faq summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
}

.faq details[open] summary {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

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

footer ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    footer ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60% {
        content: '...';
    }
    80%, 100% {
        content: '';
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff0000;
        --secondary-color: #00ff00;
        --text-color: #000000;
        --bg-color: #ffffff;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f8f9fa;
        --bg-color: #212529;
        --white: #343a40;
        --gray-light: #495057;
    }

    body {
        background-color: var(--bg-color);
    }

    header {
        background-color: var(--white);
    }

    .feature-card,
    .question,
    .step,
    .spec-content .section {
        background-color: var(--white);
    }

    .ingredient-checker,
    .features {
        background-color: var(--bg-color);
    }
}

/* Product Search and Filters */
.product-search {
    padding: 2rem 0;
    background-color: var(--white);
}

.search-filters {
    max-width: 800px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#productSearch {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1rem;
}

#searchButton {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: bold;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
}

.clear-filters {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 0.5rem 1.5rem;
    background-color: var(--gray);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.results-summary {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Products Grid */
.products-grid {
    padding: 3rem 0;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.product-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    flex: 1;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.product-info {
    margin-bottom: 1rem;
}

.product-info p {
    margin: 0.25rem 0;
}

.brand {
    color: var(--gray);
    font-size: 0.9rem;
}

.category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.85rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.skin-types {
    font-size: 0.9rem;
    color: var(--gray);
}

.product-description {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.product-ingredients {
    margin-bottom: 1rem;
}

.ingredients-label {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.ingredients {
    font-size: 0.85rem;
    color: var(--gray);
}

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

.stars {
    font-size: 1.1rem;
}

.rating-number {
    font-weight: bold;
}

.reviews {
    color: var(--gray);
    font-size: 0.9rem;
}

.view-details-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.view-details-btn:hover {
    background-color: #45b7aa;
}

.no-results {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--gray);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-light);
    background-color: var(--white);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination button:hover {
    background-color: var(--gray-light);
}

.pagination button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination span {
    padding: 0.5rem;
    color: var(--gray);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content .ingredients-list {
    list-style: none;
    padding: 0;
}

.modal-content .ingredients-list li {
    padding: 0.5rem;
    background-color: var(--bg-color);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.modal-actions button:first-child {
    background-color: var(--primary-color);
    color: var(--white);
}

.modal-actions button:last-child {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Responsive adjustments for products */
@media (max-width: 768px) {
    .filters {
        grid-template-columns: 1fr;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* High Contrast Mode Styles */
body.high-contrast {
    --primary-color: #ff0066;
    --secondary-color: #0099ff;
    --text-color: #000000;
    --bg-color: #ffffff;
    --white: #ffffff;
    --gray-light: #cccccc;
    --gray: #666666;
    --success: #008800;
    --warning: #ff9900;
    --danger: #cc0000;
}

body.high-contrast * {
    border-color: currentColor !important;
}

body.high-contrast a,
body.high-contrast button,
body.high-contrast .btn {
    text-decoration: underline;
    font-weight: bold;
}

body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
    border: 2px solid #000000 !important;
}

body.high-contrast .product-card,
body.high-contrast .feature-card,
body.high-contrast .question,
body.high-contrast .step,
body.high-contrast .modal-content {
    border: 2px solid #000000;
}

body.high-contrast .gradient-bg {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast .bg-white {
    background-color: #ffffff !important;
    border: 1px solid #000000;
}

body.high-contrast .text-gray-600,
body.high-contrast .text-gray-500,
body.high-contrast .text-gray-700 {
    color: #000000 !important;
}

body.high-contrast .bg-pink-500,
body.high-contrast .bg-pink-600 {
    background-color: #ff0066 !important;
    color: #ffffff !important;
}

body.high-contrast .hover\:bg-pink-50:hover {
    background-color: #ffccdd !important;
    color: #000000 !important;
}

/* Font Size Adjustments */
body {
    font-size: var(--base-font-size, 1rem);
    transition: font-size 0.3s ease;
}

/* Ensure all text elements scale properly */
h1, h2, h3, h4, h5, h6, p, li, td, th, label, input, select, textarea, button {
    font-size: inherit;
}

/* Maintain relative sizes */
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.25em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

small { font-size: 0.875em; }
.text-sm { font-size: 0.875em; }
.text-lg { font-size: 1.125em; }
.text-xl { font-size: 1.25em; }
.text-2xl { font-size: 1.5em; }
.text-3xl { font-size: 1.875em; }
.text-4xl { font-size: 2.25em; }