/* 
 * AI Displacement Survey - Stylesheet
 * Warm, empathetic, professional design
 */

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

:root {
    --navy: #1B3A6B;
    --blue: #2E86AB;
    --warm-white: #F8F9FA;
    --slate: #4A5568;
    --green: #27AE60;
    --gold: #F4A261;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate);
    background-color: var(--warm-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

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

a:hover { color: var(--navy); }

/* ===== NAVIGATION ===== */
.nav {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--navy);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--slate);
    font-weight: 500;
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
}

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

.section {
    padding: 4rem 0;
}

.section-white { background-color: var(--white); }
.section-grey { background-color: var(--warm-white); }

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.stat-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-separator {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .stat-bar { font-size: 0.85rem; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background-color: var(--navy);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== CARDS ===== */
.researchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.researcher-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}

.researcher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.researcher-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.researcher-title {
    color: var(--slate);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.researcher-location {
    color: var(--blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.disclaimer-text {
    text-align: center;
    font-style: italic;
    color: var(--slate);
    margin-top: 1rem;
}

/* ===== TOPIC CARDS ===== */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}

.topic-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.topic-card p {
    font-size: 0.9rem;
    color: var(--slate);
    margin: 0;
}

/* ===== PROMISE CARDS ===== */
.promises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.promise-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}

.promise-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.promise-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.promise-card p {
    font-size: 0.9rem;
    color: var(--slate);
    margin: 0;
}

.privacy-link {
    text-align: center;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--blue);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    color: var(--white);
    margin-bottom: 2rem;
}

/* ===== SURVEY CONTAINER ===== */
.survey-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.survey-header {
    text-align: center;
    margin-bottom: 2rem;
}

.survey-header h1 {
    margin-bottom: 0.5rem;
}

.survey-header p {
    color: var(--slate);
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(39, 174, 96, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--green);
    width: 25%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--slate);
}

/* ===== SURVEY SECTIONS ===== */
.survey-section {
    animation: fadeIn 0.5s ease;
}

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

.section-heading {
    text-align: center;
    color: var(--navy);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

/* ===== QUESTION CARDS ===== */
.question-card {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.question-label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.required {
    color: #E74C3C;
}

.help-text {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 1rem;
    font-style: italic;
}

/* ===== RADIO & CHECKBOX GROUPS ===== */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option, .checkbox-card {
    background-color: var(--warm-white);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.radio-option:hover, .checkbox-card:hover {
    border-color: var(--blue);
    background-color: rgba(46, 134, 171, 0.05);
}

.radio-option input, .checkbox-card input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-option:has(input:checked), .checkbox-card:has(input:checked) {
    border-color: var(--blue);
    background-color: rgba(46, 134, 171, 0.1);
}

.radio-option span, .checkbox-card span {
    flex: 1;
}

/* ===== SCALE BUTTONS ===== */
.scale-group {
    margin-top: 1rem;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--slate);
    font-style: italic;
}

.scale-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.scale-button {
    flex: 1;
    background-color: var(--warm-white);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scale-button:hover {
    border-color: var(--blue);
    background-color: rgba(46, 134, 171, 0.05);
}

.scale-button input {
    display: none;
}

.scale-button:has(input:checked) {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    transform: scale(1.05);
}

.scale-button span {
    font-weight: 600;
    font-size: 1.2rem;
}

@media (max-width: 600px) {
    .scale-buttons { gap: 0.5rem; }
    .scale-button { padding: 0.75rem; }
    .scale-button span { font-size: 1rem; }
}

/* ===== TEXT INPUTS ===== */
.text-input, .text-area, .select-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.text-input:focus, .text-area:focus, .select-input:focus {
    outline: none;
    border-color: var(--blue);
}

.text-area {
    resize: vertical;
    min-height: 100px;
}

/* ===== RANKED INPUTS ===== */
.ranked-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.ranked-item label {
    font-weight: 600;
    color: var(--navy);
}

/* ===== BUTTON GROUPS ===== */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .button-group {
        flex-direction: column;
    }
}

/* ===== THANK YOU PAGE ===== */
.thankyou-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 20px;
    text-align: center;
}

.checkmark-animation {
    margin: 0 auto 2rem;
    width: 100px;
    height: 100px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.checkmark-circle {
    stroke: var(--green);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--green);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.thankyou-title {
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.thankyou-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.share-section {
    background-color: var(--warm-white);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.share-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.return-home {
    margin-top: 2rem;
}

/* ===== PRIVACY PAGE ===== */
.privacy-page {
    padding: 3rem 20px;
}

.privacy-page h1 {
    margin-bottom: 0.5rem;
}

.updated-date {
    color: var(--slate);
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.privacy-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.privacy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

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

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

.footer-tagline {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--white);
    margin: 0 1rem;
}

.footer-links a:hover {
    color: var(--gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.8rem; }
}
