/**
 * FromDadTo.com - Stylesheet
 * Warm, children-book inspired design
 * A project by Help Fathers Foundation
 */

/* ============================================
   CSS Variables & Base Styles
   ============================================ */
:root {
    --primary-orange: #E67E22;
    --primary-orange-light: #F39C12;
    --primary-yellow: #F1C40F;
    --warm-cream: #FFF8E7;
    --warm-peach: #FFEAA7;
    --soft-pink: #FDCB9E;
    --text-dark: #2C3E50;
    --text-medium: #5D6D7E;
    --text-light: #95A5A6;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-medium: 0 15px 50px rgba(0,0,0,0.12);
    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --font-display: 'Caveat', cursive;
    --font-body: 'Nunito', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--warm-cream);
    min-height: 100vh;
}

/* ============================================
   Floating Shapes (Background Decoration)
   ============================================ */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #FFEAA7 0%, #FDCB9E 100%);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #DFE6E9 0%, #B2BEC3 100%);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #FAD7A0 0%, #F8C471 100%);
    top: 40%;
    right: 5%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #E8DAEF 0%, #D2B4DE 100%);
    bottom: 30%;
    left: 10%;
    animation-delay: -15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #D5F5E3 0%, #ABEBC6 100%);
    top: 60%;
    left: 50%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-5deg); }
    75% { transform: translate(30px, 10px) rotate(3deg); }
}

/* ============================================
   Header Styles
   ============================================ */
.main-header {
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.simple-header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 2em;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-orange);
}

.header-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-small);
    transition: background 0.3s;
}

.header-link:hover {
    background: rgba(0,0,0,0.05);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 80px;
    min-height: 70vh;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 550px;
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-size: 4.5em;
    line-height: 0.9;
    color: var(--text-dark);
}

.title-line.accent {
    color: var(--primary-orange);
    font-size: 5em;
}

.title-line.small {
    font-size: 3em;
    color: var(--text-medium);
    margin-top: 10px;
}

.hero-description {
    font-size: 1.25em;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.search-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
}

.search-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-medium);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 3px solid #EEE;
    border-radius: var(--radius-medium);
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.hero-illustration {
    position: relative;
}

.illustration-card {
    background: var(--white);
    padding: 60px 80px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    text-align: center;
    transform: rotate(3deg);
    animation: gentle-rock 4s ease-in-out infinite;
}

@keyframes gentle-rock {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(-2deg); }
}

.card-heart {
    font-size: 5em;
    margin-bottom: 20px;
}

.card-text .from {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5em;
    color: var(--text-medium);
}

.card-text .to {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5em;
    color: var(--primary-orange);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-medium);
    font-family: inherit;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 3px solid #EEE;
}

.btn-secondary:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2em;
}

.btn-search {
    background: var(--primary-orange);
    color: var(--white);
    padding: 15px 25px;
}

.btn-icon {
    font-size: 1.2em;
}

.btn-arrow {
    transition: transform 0.3s;
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: 80px;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3em;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 60px;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2em;
}

.step-icon {
    font-size: 4em;
    margin: 30px 0 20px;
}

.step h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 80px;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE4C4 100%);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 2.5em;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.about-content p {
    font-size: 1.15em;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-tagline {
    font-style: italic;
    color: var(--primary-orange) !important;
}

/* ============================================
   Footer
   ============================================ */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-org {
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

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

.footer-links a:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 0.9em;
    opacity: 0.6;
}

.simple-footer {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 0.9em;
}

/* ============================================
   Wizard Styles
   ============================================ */
.wizard-page {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE4C4 50%, #FFDAB9 100%);
    min-height: 100vh;
}

.wizard-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wizard-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-steps span {
    font-size: 0.85em;
    color: var(--text-light);
    font-weight: 600;
}

.progress-steps span.active {
    color: var(--primary-orange);
}

.wizard-step {
    background: var(--white);
    border-radius: var(--radius-large);
    padding: 50px;
    box-shadow: var(--shadow-medium);
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header .step-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.step-header h1 {
    font-family: var(--font-display);
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-header p {
    color: var(--text-medium);
    font-size: 1.1em;
}

.wizard-error {
    background: #FFEBEE;
    color: #C62828;
    padding: 15px 20px;
    border-radius: var(--radius-small);
    margin-bottom: 25px;
    text-align: center;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group textarea {
    padding: 18px 20px;
    border: 3px solid #EEE;
    border-radius: var(--radius-medium);
    font-size: 1.1em;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-hint {
    font-size: 0.9em;
    color: var(--text-light);
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

/* Type Options (Radio Cards) */
.type-options {
    display: flex;
    gap: 20px;
}

.type-options.small {
    gap: 15px;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input {
    display: none;
}

.option-card {
    background: #F8F9FA;
    border: 3px solid transparent;
    border-radius: var(--radius-medium);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.type-options.small .option-card {
    padding: 20px 15px;
}

.type-option input:checked + .option-card {
    border-color: var(--primary-orange);
    background: #FFF8E7;
}

.option-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.type-options.small .option-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.option-card h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.option-card p {
    font-size: 0.9em;
    color: var(--text-medium);
}

/* Color Picker */
.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    cursor: pointer;
}

.color-option input {
    display: none;
}

.color-swatch {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.color-option input:checked + .color-swatch {
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

.color-name {
    display: none;
}

/* Summary Box */
.summary-box {
    background: #F8F9FA;
    padding: 25px;
    border-radius: var(--radius-medium);
}

.summary-box h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.summary-box ul {
    list-style: none;
}

.summary-box li {
    padding: 8px 0;
    border-bottom: 1px solid #EEE;
    color: var(--text-medium);
}

.summary-box li:last-child {
    border-bottom: none;
}

/* Helpful Tips */
.helpful-tips {
    background: #E8F6FF;
    padding: 20px 25px;
    border-radius: var(--radius-medium);
    margin-top: 10px;
}

.helpful-tips h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.helpful-tips ul {
    margin-left: 20px;
}

.helpful-tips li {
    color: var(--text-medium);
    padding: 3px 0;
}

.helpful-tips a {
    color: var(--primary-orange);
}

/* Input with Prefix */
.input-with-prefix {
    display: flex;
    align-items: center;
    border: 3px solid #EEE;
    border-radius: var(--radius-medium);
    overflow: hidden;
    transition: border-color 0.3s;
}

.input-with-prefix:focus-within {
    border-color: var(--primary-orange);
}

.input-prefix {
    background: #F8F9FA;
    padding: 18px 15px;
    color: var(--text-light);
    font-size: 1em;
    white-space: nowrap;
}

.input-with-prefix input {
    flex: 1;
    border: none !important;
    padding: 18px 15px !important;
}

.input-with-prefix input:focus {
    box-shadow: none !important;
}

/* ============================================
   Success Screen
   ============================================ */
.wizard-success {
    background: var(--white);
    border-radius: var(--radius-large);
    padding: 60px 50px;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.wizard-success .success-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.wizard-success h1 {
    font-family: var(--font-display);
    font-size: 3em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.success-message {
    font-size: 1.2em;
    color: var(--text-medium);
    margin-bottom: 35px;
}

.success-url-box {
    background: #F8F9FA;
    padding: 25px;
    border-radius: var(--radius-medium);
    margin-bottom: 35px;
}

.url-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.url-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-small);
    border: 2px dashed #DDD;
}

.url-text {
    flex: 1;
    font-family: monospace;
    font-size: 1em;
    color: var(--primary-orange);
    word-break: break-all;
}

.btn-copy {
    background: var(--text-dark);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-copy:hover {
    background: var(--primary-orange);
}

.success-tips {
    text-align: left;
    background: #E8F6FF;
    padding: 25px;
    border-radius: var(--radius-medium);
    margin-bottom: 35px;
}

.success-tips h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.success-tips p {
    color: var(--text-medium);
    margin-bottom: 10px;
}

.success-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ============================================
   Message View Page
   ============================================ */
/* ============================================
   Letter-style View Page
   ============================================ */
.message-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 40px;
}

.letter-wrapper {
    max-width: 680px;
    width: 100%;
}

.letter {
    background: var(--white);
    padding: 60px 55px;
    border-radius: 4px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 6px 25px rgba(0, 0, 0, 0.06);
    position: relative;
}

/* Subtle left-edge accent */
.letter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-orange-light));
    border-radius: 4px 0 0 4px;
}

.letter-heading {
    margin-bottom: 0;
}

.letter-to {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4em;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.letter-from-line {
    display: block;
    font-size: 1.05em;
    color: var(--text-light);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.letter-rule {
    width: 50px;
    height: 3px;
    background: var(--primary-orange);
    margin: 28px 0 32px;
    border-radius: 2px;
}

.letter-title {
    font-family: var(--font-display);
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: left;
    font-weight: 700;
    line-height: 1.3;
}

.letter-body {
    font-size: 1.15em;
    line-height: 1.85;
    color: #3a3a3a;
    text-align: left;
}

.letter-photos {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.letter-photo {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.letter-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.letter-photo figcaption {
    padding: 10px 14px;
    font-size: 0.85em;
    color: #777;
    background: #fafafa;
}

.letter-sign-off {
    margin-top: 44px;
    text-align: left;
}

.letter-closing {
    display: block;
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.letter-signature {
    display: block;
    font-family: var(--font-display);
    font-size: 2em;
    color: var(--primary-orange);
    line-height: 1.2;
}

.letter-cta {
    display: inline-block;
    margin-top: 36px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.letter-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.4);
}

.letter-date {
    margin-top: 30px;
    font-size: 0.85em;
    color: #bbb;
    text-align: left;
}

.page-footer {
    margin-top: 36px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85em;
}

.page-footer .footer-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 600;
}

.page-footer .footer-divider {
    margin: 0 10px;
}

/* ============================================
   Redirect Page
   ============================================ */
.redirect-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE4C4 100%);
}

.redirect-container {
    text-align: center;
    padding: 40px;
}

.redirect-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.redirect-container h1 {
    font-family: var(--font-display);
    font-size: 3em;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.redirect-from {
    font-size: 1.3em;
    color: var(--primary-orange);
    margin-bottom: 30px;
}

.redirect-message {
    font-size: 1.2em;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.redirect-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #EEE;
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.redirect-fallback {
    font-size: 0.9em;
    color: var(--text-light);
}

.redirect-fallback a {
    color: var(--primary-orange);
}

/* ============================================
   Search Page
   ============================================ */
.search-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE4C4 100%);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h1 {
    font-family: var(--font-display);
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.search-header p {
    color: var(--text-medium);
}

.search-box {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.search-input-large {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.2em;
    font-family: inherit;
    border-radius: var(--radius-medium);
    background: #F8F9FA;
}

.search-input-large:focus {
    outline: none;
    background: #F0F0F0;
}

.search-results {
    background: var(--white);
    border-radius: var(--radius-large);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.results-count {
    font-size: 1.1em;
    color: var(--text-medium);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #EEE;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #F8F9FA;
    border-radius: var(--radius-medium);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-soft);
}

.result-icon {
    font-size: 2em;
}

.result-info {
    flex: 1;
}

.result-name {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1em;
}

.result-from {
    display: block;
    color: var(--text-light);
    font-size: 0.9em;
}

.result-arrow {
    font-size: 1.5em;
    color: var(--primary-orange);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.no-results h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-medium);
}

.no-results-hint {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 15px;
}

/* ============================================
   Error Page
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE4C4 100%);
}

.error-container {
    text-align: center;
    background: var(--white);
    padding: 60px 50px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    max-width: 500px;
}

.error-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.error-container h1 {
    font-family: var(--font-display);
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.error-container p {
    color: var(--text-medium);
    margin-bottom: 10px;
}

.error-search {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.error-search input {
    flex: 1;
    padding: 15px;
    border: 3px solid #EEE;
    border-radius: var(--radius-medium);
    font-family: inherit;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .title-line {
        font-size: 3em;
    }
    
    .title-line.accent {
        font-size: 3.5em;
    }
    
    .illustration-card {
        padding: 40px 60px;
    }
    
    .steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .how-it-works {
        padding: 50px 30px;
    }
}

@media (max-width: 600px) {
    .main-header,
    .simple-header {
        padding: 15px 20px;
    }
    
    .logo-text {
        font-size: 1.5em;
    }
    
    .hero-section {
        padding: 30px 20px;
    }
    
    .title-line {
        font-size: 2.5em;
    }
    
    .title-line.accent {
        font-size: 3em;
    }
    
    .hero-description {
        font-size: 1.1em;
    }
    
    .search-section {
        padding: 20px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .wizard-step {
        padding: 30px 25px;
    }
    
    .step-header h1 {
        font-size: 2em;
    }
    
    .type-options {
        flex-direction: column;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
    
    .success-buttons {
        flex-direction: column;
    }
    
    .letter {
        padding: 36px 28px;
    }

    .letter-to {
        font-size: 1.8em;
    }

    .letter-title {
        font-size: 1.4em;
    }

    .letter-body {
        font-size: 1.05em;
    }

    .letter-signature {
        font-size: 1.6em;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .about-section {
        padding: 50px 30px;
    }
}
