/* ============================================================
   AI Trip Planner - Contact Page Styles
   Ramirez Adventures
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Roboto:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors (extracted from logo) */
    --ra-navy: #0e3047;         /* Deep dark navy container borders and main titles */
    --ra-teal: #068285;         /* Medium ocean teal/green waves */
    --ra-teal-light: #0d9fa3;   /* Light ocean blue waves */
    --ra-orange: #f58025;       /* Warm orange sunset sky */
    --ra-gold: #fec64f;         /* Bright yellow sun */
    --ra-palm-green: #67b25f;   /* Green palm tree leaf */
    --ra-white: #ffffff;
    --ra-gray-100: #f4f7f6;
    --ra-gray-200: #dce4e5;
    --ra-gray-500: #576d75;
    --ra-gray-800: #1a3c4f;
    --ra-gradient: linear-gradient(135deg, #0e3047 0%, #068285 50%, #f58025 100%);
}

/* ============================================================
   Page Base
   ============================================================ */
.ra-planner-page {
    min-height: 100vh;
    background: var(--ra-white);
    font-family: 'Roboto', sans-serif;
}

/* Step slide-in animation (triggered by JS) */
.ra-step--in {
    animation: slideInStep 0.4s ease both;
}

/* Error Toast */
.ra-error-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #ef4444;
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(239,68,68,0.4);
}

.ra-error-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Hero Section
   ============================================================ */
.ra-planner-hero {
    background: var(--ra-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 40px 80px;
    text-align: center;
}

.ra-hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(13,148,136,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249,115,22,0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
    animation: particleShift 8s ease-in-out infinite alternate;
}

@keyframes particleShift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(2deg); }
}

.ra-hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.ra-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.ra-badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.ra-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--ra-white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.ra-hero-gradient {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ra-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.ra-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: var(--ra-white);
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(249,115,22,0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-bottom: 48px;
}

.ra-start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(249,115,22,0.5);
}

.ra-btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.ra-start-btn:hover .ra-btn-arrow {
    transform: translateX(4px);
}

.ra-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.ra-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
}

.ra-stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f97316;
    line-height: 1;
}

.ra-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
    white-space: nowrap;
}

.ra-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

.ra-hero-visual {
    position: absolute;
    right: 10%;
    bottom: 10%;
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.ra-hero-card-float {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.ra-float-icon { font-size: 2rem; }

.ra-float-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ra-float-text strong {
    color: var(--ra-white);
    font-size: 0.9rem;
}

.ra-float-text span {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* ============================================================
   Planner Section
   ============================================================ */
.ra-planner-section {
    min-height: 100vh;
    background: var(--ra-gray-100);
    padding: 60px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-planner-container {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

/* Progress Bar */
.ra-progress-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.ra-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--ra-gray-200);
    border-radius: 10px;
    overflow: hidden;
}

.ra-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #f97316);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 20%;
}

.ra-step-label {
    font-size: 0.85rem;
    color: var(--ra-gray-500);
    font-weight: 600;
    white-space: nowrap;
}

/* Step Cards */
.ra-step {
    animation: slideInStep 0.4s ease;
}

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

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

.ra-step-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.ra-step-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ra-navy);
    margin-bottom: 8px;
}

.ra-step-header p {
    color: var(--ra-gray-500);
    font-size: 0.95rem;
}

/* Option Cards Grid */
.ra-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ra-options-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.ra-option-card {
    background: var(--ra-white);
    border: 2px solid var(--ra-gray-200);
    border-radius: 16px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.ra-option-card:hover {
    border-color: var(--ra-teal);
    background: linear-gradient(135deg, rgba(13,148,136,0.04), rgba(255,255,255,1));
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13,148,136,0.15);
}

.ra-option-card.selected {
    border-color: var(--ra-teal);
    background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(255,255,255,1));
    box-shadow: 0 8px 24px rgba(13,148,136,0.2);
}

.ra-opt-emoji {
    font-size: 2rem;
    line-height: 1;
}

.ra-option-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ra-navy);
    font-weight: 700;
}

.ra-option-card span {
    font-size: 0.78rem;
    color: var(--ra-gray-500);
}

/* Back button */
.ra-back-wrap {
    margin-top: 20px;
    text-align: center;
}

.ra-back-btn {
    background: none;
    border: none;
    color: var(--ra-gray-500);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.ra-back-btn:hover {
    color: var(--ra-navy);
    background: var(--ra-gray-200);
}

/* ============================================================
   Loading Section
   ============================================================ */
.ra-loading-section {
    min-height: 100vh;
    background: var(--ra-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.ra-loading-container {
    max-width: 480px;
    width: 100%;
}

.ra-loading-brain {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-brain-ring {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: rgba(255,255,255,0.9);
    border-radius: 50%;
    animation: spinRing 1.5s linear infinite;
}

.ra-brain-ring:nth-child(1) { width: 120px; height: 120px; }
.ra-brain-ring.ra-ring-2 { width: 90px; height: 90px; animation-delay: -0.3s; animation-direction: reverse; border-top-color: #f97316; }
.ra-brain-ring.ra-ring-3 { width: 60px; height: 60px; animation-delay: -0.6s; border-top-color: #14b8a6; }

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

.ra-brain-icon {
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.ra-loading-container h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--ra-white);
    margin-bottom: 28px;
}

.ra-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.ra-load-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.ra-load-step.active {
    color: var(--ra-white);
    background: rgba(255,255,255,0.12);
}

.ra-load-step.done {
    color: #22c55e;
}

.ra-load-step i { font-size: 1rem; }

/* ============================================================
   Result Section
   ============================================================ */
.ra-result-section {
    min-height: 100vh;
    background: var(--ra-gray-100);
    padding: 80px 20px 80px;
}

.ra-result-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.ra-result-hero {
    background: var(--ra-gradient);
    border-radius: 24px;
    padding: 48px;
    color: var(--ra-white);
    position: relative;
    overflow: hidden;
    animation: slideInStep 0.6s ease;
}

.ra-result-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.ra-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249,115,22,0.9);
    color: var(--ra-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.ra-result-tour-name {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ra-white);
    margin-bottom: 8px;
}

.ra-result-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    font-style: italic;
    margin-bottom: 20px;
}

.ra-result-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    max-width: 600px;
}

.ra-result-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ra-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--ra-white);
}

.ra-meta-item i { color: #f97316; }

.ra-result-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.ra-highlight-tag {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.95);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Contact Form Card */
.ra-contact-card {
    background: var(--ra-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    animation: slideInStep 0.6s ease 0.2s both;
}

.ra-contact-header {
    margin-bottom: 28px;
}

.ra-contact-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--ra-navy);
    margin-bottom: 6px;
}

.ra-contact-header p {
    color: var(--ra-gray-500);
    font-size: 0.9rem;
}

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

.ra-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.ra-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ra-gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ra-form-group input,
.ra-form-group textarea {
    border: 2px solid var(--ra-gray-200);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: var(--ra-gray-800);
    background: var(--ra-white);
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.ra-form-group input:focus,
.ra-form-group textarea:focus {
    border-color: var(--ra-teal);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

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

.ra-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.ra-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
}

.ra-btn-primary {
    background: var(--ra-navy);
    color: var(--ra-white);
    box-shadow: 0 4px 16px rgba(12,35,64,0.25);
}

.ra-btn-primary:hover {
    background: var(--ra-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,148,136,0.35);
}

.ra-btn-whatsapp {
    background: #25d366;
    color: var(--ra-white);
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.ra-btn-whatsapp:hover {
    background: #1fba58;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    color: var(--ra-white);
}

.ra-restart-btn {
    background: none;
    border: 2px solid var(--ra-gray-200);
    color: var(--ra-gray-500);
    padding: 12px 20px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ra-restart-btn:hover {
    border-color: var(--ra-navy);
    color: var(--ra-navy);
}

/* Success State */
.ra-form-success {
    text-align: center;
    padding: 40px 20px;
}

.ra-form-success .ra-success-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}

.ra-form-success h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--ra-navy);
    margin-bottom: 10px;
}

.ra-form-success p {
    color: var(--ra-gray-500);
    line-height: 1.6;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .ra-planner-hero {
        padding: 140px 20px 60px;
    }
    
    .ra-hero-visual { display: none; }

    .ra-options-grid { grid-template-columns: 1fr; }
    .ra-options-grid--3col { grid-template-columns: repeat(2, 1fr); }

    .ra-form-row { grid-template-columns: 1fr; }

    .ra-result-hero { padding: 28px; }
    .ra-contact-card { padding: 24px; }

    .ra-form-actions { flex-direction: column; }
    .ra-submit-btn { justify-content: center; }

    .ra-hero-stats { gap: 0; flex-wrap: wrap; }
    
    .ra-stat-divider { display: none; }
    .ra-stat { padding: 10px 16px; }

    .ra-result-meta { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .ra-options-grid--3col { grid-template-columns: 1fr; }
}
