/* ============================================
   BiizLab Diagnostic Flash - Styles
   ============================================ */

/* === FONTS === */
@font-face {
    font-family: 'JA Jayagri Sans';
    src: local('JA Jayagri Sans');
    font-weight: 400 800;
    font-display: swap;
}

/* === CSS VARIABLES === */
:root {
    --primary: #E67E22;
    --primary-light: #F39C12;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #2C1E11;
    --light: #F5F5DC;
    --text: #2C1E11;
    --border: #D4C9A8;
    --beige: #F5F5DC;
    --noir-cafe: #2C1E11;
    --orange: #E67E22;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: var(--text);
    background: var(--beige);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'JA Jayagri Sans', 'Segoe UI', Roboto, sans-serif;
}

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

/* === HEADER === */
header {
    background: var(--beige);
    box-shadow: 0 2px 10px rgba(44, 30, 17, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 90px;
    width: auto;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--noir-cafe);
    margin-top: 2px;
    font-family: 'Roboto Mono', monospace;
}

/* === HERO === */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    color: var(--dark);
}

.hero .subtitle {
    font-size: 20px;
    color: var(--noir-cafe);
    opacity: 0.8;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === GLASSMORPHISM BUTTONS === */
.hero .cta-button,
.calendly-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.85) 0%, rgba(243, 156, 18, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 18px 44px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 32px rgba(230, 126, 34, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero .cta-button:hover,
.calendly-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(230, 126, 34, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.95) 0%, rgba(243, 156, 18, 0.95) 100%);
}

.hero .cta-button:active,
.calendly-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* === QUIZ SECTION === */
.quiz-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    display: none;
}

.quiz-section.active {
    display: block;
    animation: slideIn 0.4s ease;
}

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

.quiz-header {
    margin-bottom: 40px;
}

.quiz-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--dark);
}

.quiz-progress {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: width 0.3s ease;
}

.question-container {
    margin-bottom: 32px;
}

.question-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    color: var(--dark);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.option:hover {
    border-color: var(--primary);
    background: #FFF5E6;
}

.option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.option span {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
}

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

/* === BUTTONS === */
.button-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: flex-end;
}

button {
    padding: 14px 32px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.85) 0%, rgba(243, 156, 18, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(230, 126, 34, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 40px rgba(230, 126, 34, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.95) 0%, rgba(243, 156, 18, 0.95) 100%);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary);
    border: 1px solid rgba(230, 126, 34, 0.3);
    box-shadow:
        0 4px 16px rgba(44, 30, 17, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow:
        0 8px 24px rgba(44, 30, 17, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(230, 126, 34, 0.5);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

/* === RESULTS === */
.results-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    display: none;
}

.results-section.active {
    display: block;
    animation: slideIn 0.4s ease;
}

.score-box {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    font-size: 64px;
    font-weight: 800;
    color: white;
}

.score-circle.critical {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
}

.score-circle.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
}

.score-circle.excellent {
    background: linear-gradient(135deg, var(--success) 0%, #16A34A 100%);
}

.score-label {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.score-subtitle {
    font-size: 16px;
    color: var(--noir-cafe);
    opacity: 0.7;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.insights {
    background: var(--beige);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: left;
}

.insights h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--dark);
}

.insights ul {
    list-style: none;
    padding: 0;
}

.insights li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--noir-cafe);
}

.insights li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--primary);
}

/* === COSTS BOX === */
.costs-box {
    background: var(--beige);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.costs-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.frictions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.friction-item {
    background: white;
    border-radius: 10px;
    padding: 16px;
    border-left: 4px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.friction-item.critical {
    border-left-color: var(--danger);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, white 100%);
}

.friction-item.warning {
    border-left-color: var(--warning);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, white 100%);
}

.friction-item.moderate {
    border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(230, 126, 34, 0.05) 0%, white 100%);
}

.friction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.friction-icon {
    font-size: 20px;
    margin-right: 8px;
}

.friction-name {
    font-weight: 600;
    color: var(--dark);
    flex: 1;
    display: flex;
    align-items: center;
}

.friction-cost {
    font-weight: 700;
    font-size: 18px;
    color: var(--danger);
}

.friction-solution {
    font-size: 14px;
    color: var(--noir-cafe);
    opacity: 0.8;
    padding-left: 28px;
    font-style: italic;
}

.costs-total {
    background: var(--dark);
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 16px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-line span:first-child {
    font-weight: 500;
}

.total-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-light);
}

/* === IMPACT BOX === */
.impact-box {
    background: linear-gradient(135deg, rgba(44, 30, 17, 0.08) 0%, rgba(44, 30, 17, 0.03) 100%);
    border: 2px solid rgba(44, 30, 17, 0.3);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.impact-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--noir-cafe);
    display: flex;
    align-items: center;
    gap: 10px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.impact-item {
    background: white;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.impact-label {
    font-size: 13px;
    color: var(--noir-cafe);
    opacity: 0.8;
    margin-bottom: 8px;
    display: block;
}

.impact-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* === RECOMMENDATIONS BOX === */
.recommendations-box {
    background: white;
    border: 2px solid var(--primary);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.recommendations-box h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendations-box p {
    color: var(--noir-cafe);
    line-height: 1.7;
    margin-bottom: 16px;
}

.recommendations-box p:last-child {
    margin-bottom: 0;
}

/* === CHECKBOX GROUP === */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: var(--primary);
    background: #FFF5E6;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--noir-cafe);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.help-text {
    font-size: 13px;
    color: var(--noir-cafe);
    opacity: 0.7;
    margin-top: 8px;
    display: block;
}

/* === NEXT STEPS === */
.next-steps {
    background: var(--beige);
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
}

.next-steps h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-steps ol {
    list-style: none;
    padding: 0;
    counter-reset: steps;
}

.next-steps li {
    padding: 10px 0;
    padding-left: 40px;
    position: relative;
    color: var(--noir-cafe);
    counter-increment: steps;
}

.next-steps li:before {
    content: counter(steps);
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* === SOCIAL PROOF === */
.social-proof {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.social-proof h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 16px;
    text-align: center;
}

.proof-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.proof-item {
    text-align: center;
    padding: 16px;
    background: var(--beige);
    border-radius: 10px;
}

.proof-item .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.proof-item .label {
    font-size: 13px;
    color: var(--noir-cafe);
    opacity: 0.8;
}

/* === CONFIRMATION TEXT === */
.confirmation-text {
    max-width: 500px;
    margin: 0 auto 24px;
}

.confirmation-text p {
    margin-bottom: 12px;
}

.confirmation-text strong {
    color: var(--dark);
}

/* === CALENDLY WIDGET === */
.calendly-inline-widget {
    margin: 24px auto 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === FORM === */
.form-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
}

.form-section.active {
    display: block;
    animation: slideIn 0.4s ease;
}

.form-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--dark);
}

.form-section .subtitle {
    color: var(--noir-cafe);
    opacity: 0.7;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* === CONFIRMATION === */
.confirmation-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
    text-align: center;
}

.confirmation-section.active {
    display: block;
    animation: slideIn 0.4s ease;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.confirmation-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--success);
}

.confirmation-section p {
    font-size: 18px;
    color: var(--noir-cafe);
    opacity: 0.7;
    margin-bottom: 32px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .quiz-section,
    .results-section,
    .form-section,
    .confirmation-section {
        padding: 24px;
    }

    .button-group {
        flex-direction: column;
        justify-content: center;
    }

    .button-group button {
        width: 100%;
    }

    .score-circle {
        width: 140px;
        height: 140px;
        font-size: 48px;
    }

    .friction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .friction-cost {
        font-size: 16px;
    }

    .friction-solution {
        padding-left: 0;
    }

    .impact-stats {
        grid-template-columns: 1fr;
    }

    .impact-value {
        font-size: 24px;
    }

    .total-amount {
        font-size: 20px;
    }

    .proof-items {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .proof-item .number {
        font-size: 28px;
    }

    .next-steps li {
        padding-left: 36px;
    }

    .next-steps li:before {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
