:root {
    --teal: #0e7490;
    --teal-light: #e0f2fe;
    --teal-dark: #164e63;
    --terracotta: #c2410c;
    --terracotta-light: #ffedd5;
    --cream: #fdf8ef;
    --midnight: #18181b;
    --gray-light: #f4f4f5;
    --gray-med: #e4e4e7;
    --white: #ffffff;
    
    --font-head: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Caveat', cursive;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--midnight);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background-image: radial-gradient(circle at top right, rgba(14, 116, 144, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(194, 65, 12, 0.05) 0%, transparent 40%);
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Sections */
.view-section {
    width: 100%;
    animation: fadeIn 0.5s ease;
}

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

/* Common Components */
.content-box {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-top: 20px;
}

@media (max-width: 600px) {
    .content-box { padding: 30px 20px; }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 99px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(14, 116, 144, 0.2);
}

.btn-primary:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 116, 144, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--teal-light);
}

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

.btn-terracotta:hover {
    background-color: #9a3309;
}

.btn-large {
    font-size: 1.15rem;
    padding: 16px 40px;
    border-radius: 99px;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Start Screen */
.hero-image-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.start-content {
    text-align: center;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.main-title {
    font-family: var(--font-head);
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--midnight);
    margin-bottom: 20px;
}

.subtitle-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--teal);
}

.description {
    font-size: 1.1rem;
    color: #52525b;
    max-width: 600px;
    margin: 0 auto 35px;
}

/* Quiz Screen */
.quiz-header {
    margin-bottom: 40px;
    padding-top: 20px;
}

.progress-container {
    width: 100%;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: var(--teal-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--teal);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-title {
    font-family: var(--font-head);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: center;
}

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

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

.answer-card {
    background: var(--white);
    border: 2px solid var(--gray-med);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #3f3f46;
}

.answer-card:hover {
    border-color: var(--teal);
    background-color: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.08);
}

/* Form Styles */
.form-content {
    text-align: center;
    max-width: 500px;
    margin: 40px auto 0;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.form-title {
    font-family: var(--font-head);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.form-desc {
    color: #52525b;
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--midnight);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-med);
    border-radius: 12px;
    transition: all 0.3s;
    background: #fafafa;
}

input:focus {
    outline: none;
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.1);
}

.error-msg {
    color: #dc2626;
    background: #fee2e2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Result Screen */
.result-content {
    padding: 50px;
}

@media (max-width: 600px) {
    .result-content { padding: 30px 20px; }
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-med);
}

.result-pretitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 10px;
}

.result-title-script {
    font-family: var(--font-script);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--teal);
    margin: 0;
    transform: rotate(-2deg);
}

.result-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #3f3f46;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-head);
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--midnight);
}

.career-paths-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.career-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid var(--gray-med);
}

.career-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--terracotta-light);
    color: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.career-name {
    font-weight: 500;
    font-size: 1rem;
}

.resources-section {
    background: var(--teal-light);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.resources-section .section-title {
    color: var(--teal-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.resources-text {
    color: var(--teal-dark);
    font-size: 1.05rem;
}

.share-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-med);
    text-align: center;
}

.share-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.share-row {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.share-row input {
    flex: 1;
    margin: 0;
}

/* SDK Attribution */
#wbx-powered-by-slot {
    margin-top: 40px;
    padding-bottom: 20px;
    width: 100%;
}
