/* ========================================
   CALORIE CALCULATOR - Main Styles
   Based on BMFit Design System
   ======================================== */

.calorie-calculator-wrapper {
    font-family: 'Open Sans', sans-serif;
    color: #1a1a2e;
    background: #f4f4f8;
    padding: 60px 20px;
}

.calc-container {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 56px 48px;
    animation: fadeInUp 0.5s ease-out;
}

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

/* ========================================
   LAYOUT - Single Column Centered
   ======================================== */

.calc-layout-single {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.calc-form-center {
    width: 100%;
    max-width: 600px;
}

.calc-hero {
    margin-bottom: 36px;
}

.calc-hero-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a2e;
    margin: 0 0 14px 0;
}

.calc-hero-highlight {
    color: #7c3aed;
}

.calc-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   FORM FIELDS
   ======================================== */

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.calc-field {
    margin-bottom: 16px;
    padding: 3px;
    color: #666;
    border: none;
}

.calc-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.calc-input {
    height: 55px;
    width: 100%;
    padding: 16px 18px !important;
    font-size: 1rem;
    font-weight: 500;
    border: none !important;
    border-radius: 8px !important;
    background: #f3f4f6;
    color: #1a1a2e;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.calc-input::placeholder {
    color: #c4c9d4;
    font-weight: 400;
}

.calc-input:focus {
    outline: none;
    background: #ede9fe;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* ========================================
   GENDER TOGGLE
   ======================================== */

.calc-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.calc-toggle-option {
    cursor: pointer;
}

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

.calc-toggle-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.calc-toggle-option input[type="radio"]:checked + span {
    background: #ede9fe;
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.calc-toggle-option span:hover {
    background: #f0ebff;
    color: #7c3aed;
}

/* ========================================
   GOAL CARDS
   ======================================== */

.calc-goal-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.calc-goal-card {
    cursor: pointer;
}

.calc-goal-card input[type="radio"] {
    display: none;
}

.goal-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 14px 10px;
    background: #f3f4f6;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.goal-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.goal-card-sub {
    font-size: 0.72rem;
    color: #9ca3af;
    display: block;
}

.calc-goal-card input[type="radio"]:checked + .goal-card-inner {
    background: #ede9fe;
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.calc-goal-card input[type="radio"]:checked + .goal-card-inner .goal-card-title {
    color: #7c3aed;
}

.goal-card-inner:hover {
    background: #f0ebff;
    border-color: rgba(124, 58, 237, 0.2);
}

/* ========================================
   CONTACT INTRO
   ======================================== */

.calc-contact-intro {
    margin: 32px 0 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #7c3aed;
    text-align: center;
}

.contact-intro-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.contact-intro-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   PRIVACY POLICY CHECKBOX
   ======================================== */

.calc-privacy-field {
    margin: 24px 0 16px 0;
}

.calc-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.calc-privacy-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #7c3aed;
    flex-shrink: 0;
}

.privacy-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.privacy-link {
    color: #7c3aed;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #5b21b6;
}

/* ========================================
   ACTIVITY SELECT DROPDOWN
   ======================================== */

.calc-select-wrapper {
    position: relative;
}

.calc-select {
    width: 100%;
    padding: 16px 44px 16px 18px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    color: #1a1a2e;
    font-family: 'Open Sans', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.calc-select:focus {
    outline: none;
    background: #ede9fe;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.calc-select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
}

/* ========================================
   CALCULATE BUTTON
   ======================================== */

.calc-btn-calculate {
    width: 100%;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #8c52ff 0%, #5ce1e6 100%);
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 24px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.calc-btn-calculate:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(124, 58, 237, 0.45);
}

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

/* ========================================
   SCIENCE NOTE
   ======================================== */

.calc-science-note {
    display: flex;
    gap: 14px;
    background: #f5f3ff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 0;
}

.science-note-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #7c3aed;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.science-note-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.science-note-text p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.calc-contact-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid #f3f4f6;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.contact-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.calc-btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.calc-btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.calc-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Results removed - shown only on thank you page */

.results-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-heading::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c3aed;
}

/* ========================================
   RESULT CARDS
   ======================================== */

.result-card-new {
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.result-card-maintenance {
    background: #eff6ff;
}

.result-card-loss {
    background: #fff7ed;
}

.result-card-gain {
    background: #f0fdf4;
}

.result-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.result-card-maintenance .result-label {
    color: #1d4ed8;
}

.result-card-loss .result-label {
    color: #c2410c;
}

.result-card-gain .result-label {
    color: #15803d;
}

.result-calories {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 6px;
    transition: all 0.4s ease;
}

.result-calories small {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
}

.result-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   DISCLAIMER
   ======================================== */

.results-disclaimer-new {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
}

.results-disclaimer-new i {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 2px;
}

.results-disclaimer-new p {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #94a3b8;
    margin: 0;
}

/* ========================================
   SUCCESS MESSAGE
   ======================================== */

.calc-success-message {
    text-align: center;
    padding: 60px 40px;
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 2.8rem;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.3);
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.success-text {
    font-size: 1rem;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .calc-form-center {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .calorie-calculator-wrapper {
        padding: 40px 16px;
    }

    .calc-container {
        padding: 36px 24px;
    }

    .calc-row-2 {
        grid-template-columns: 1fr;
    }

    .calc-hero-title {
        font-size: 1.8rem;
    }

    .result-calories {
        font-size: 1.8rem;
    }
}
