/* Contact Page: Bridge of Serenity - Immersive Styles */

/* ==================== FLOWING WATERFALL BACKGROUND ==================== */

.contact-hero-enhanced {
    position: relative;
    overflow: hidden;
}

.waterfall-flow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(180deg, transparent 0%, transparent 20%, rgba(255, 255, 255, 0.05) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,20 Q25,30 50,20 T100,20 L100,0 L0,0 Z" fill="%231A5F3C" opacity="0.1"/></svg>');
    background-size: 100% 400%;
    background-position: 0 0;
    animation: waterfallFlow 8s ease-in-out infinite;
    opacity: 0.15;
    z-index: 0;
}

@keyframes waterfallFlow {

    0%,
    100% {
        background-position: 0 0;
    }

    50% {
        background-position: 0 100%;
    }
}

/* Ripple effect overlay */
.waterfall-ripples {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(26, 95, 60, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(10, 61, 15, 0.02) 0%, transparent 50%);
    animation: rippleMove 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes rippleMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(10px, 10px) scale(1.05);
    }
}

/* ==================== TIME-BASED MOOD THEMES ==================== */

/* Dawn (5-9am) */
body.mood-dawn {
    --theme-primary: #FF6B9D;
    --theme-secondary: #FFA07A;
    --theme-bg: linear-gradient(135deg, #FFF5F7 0%, #FFE5E9 100%);
}

/* Day (9am-5pm) - Default */
body.mood-day {
    --theme-primary: #1A5F3C;
    --theme-secondary: #0066CC;
    --theme-bg: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

/* Dusk (5-8pm) */
body.mood-dusk {
    --theme-primary: #6B46C1;
    --theme-secondary: #4299E1;
    --theme-bg: linear-gradient(135deg, #EDE9FE 0%, #DBEAFE 100%);
}

/* Night (8pm-5am) */
body.mood-night {
    --theme-primary: #0D5E6E;
    --theme-secondary: #2C7A7B;
    --theme-bg: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
}

body.mood-night .text-gray-700 {
    color: #CBD5E0 !important;
}

/* ==================== MOOD SELECTION BUTTONS ==================== */

.mood-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mood-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.mood-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.mood-btn:hover::before {
    width: 300px;
    height: 300px;
}

.mood-btn.serenity {
    background: linear-gradient(135deg, #4299E1 0%, #3182CE 100%);
    color: white;
}

.mood-btn.heritage {
    background: linear-gradient(135deg, #D69E2E 0%, #B7791F 100%);
    color: white;
}

.mood-btn.adventure {
    background: linear-gradient(135deg, #F56565 0%, #E53E3E 100%);
    color: white;
}

.mood-btn.business {
    background: linear-gradient(135deg, #718096 0%, #4A5568 100%);
    color: white;
}

.mood-btn.active {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== HERITAGE FORM AESTHETICS ==================== */

.heritage-form {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 250, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23F5F5DC" width="100" height="100"/><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%23D4A574" stroke-width="0.5" opacity="0.2"/></svg>');
    background-size: auto, 100px 100px;
    border: 3px solid #D4A574;
    border-image: linear-gradient(135deg, #D4A574 0%, #C99A6E 100%) 1;
    position: relative;
    box-shadow:
        0 4px 20px rgba(212, 165, 116, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.heritage-form::before,
.heritage-form::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #D4A574;
}

.heritage-form::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.heritage-form::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.heritage-input {
    position: relative;
    transition: all 0.3s ease;
}

.heritage-input:focus-within {
    animation: rippleOut 0.6s ease-out;
}

@keyframes rippleOut {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 95, 60, 0.4);
    }

    100% {
        box-shadow: 0 0 0 15px rgba(26, 95, 60, 0);
    }
}

/* ==================== AVAILABILITY CALENDAR ==================== */

.availability-calendar {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid #E8E8E8;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.calendar-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-day.available {
    border-color: #1A5F3C;
}

.calendar-day.available::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1A5F3C;
}

.calendar-day.limited {
    border-color: #D4A017;
}

.calendar-day.limited::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D4A017;
}

.calendar-day.full {
    border-color: #E53E3E;
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.full::after {
    content: '';
    position: absolute;
    bottom: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E53E3E;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #1A5F3C 0%, #0A3D0F 100%);
    color: white;
    border-color: #1A5F3C;
}

/* ==================== VOICE RECORDER ==================== */

.voice-recorder {
    margin: 1rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border-radius: 12px;
    border: 2px dashed #CBD5E0;
}

.voice-recorder-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.voice-recorder-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.3);
}

.voice-recorder-btn.recording {
    background: linear-gradient(135deg, #F56565 0%, #E53E3E 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    margin-top: 1rem;
}

.waveform-bar {
    width: 4px;
    background: #1A5F3C;
    border-radius: 2px;
    animation: waveHeight 0.5s ease-in-out infinite;
}

.waveform-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.waveform-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.waveform-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.waveform-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes waveHeight {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 40px;
    }
}

/* ==================== CONNECTION STORY WALL ==================== */

.story-wall {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}

.story-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.story-card {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
}

.story-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #2D3748;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.story-quote::before {
    content: '"';
    font-size: 3rem;
    color: #1A5F3C;
    opacity: 0.3;
}

.story-quote::after {
    content: '"';
    font-size: 3rem;
    color: #1A5F3C;
    opacity: 0.3;
}

.story-author {
    font-weight: 600;
    color: #1A5F3C;
    font-size: 1rem;
}

/* ==================== RESPONSE ESTIMATOR ==================== */

.response-estimator {
    background: linear-gradient(135deg, #EBF8FF 0%, #BEE3F8 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border-left: 4px solid #3182CE;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.estimator-icon {
    font-size: 2rem;
}

.estimator-text {
    flex: 1;
}

.estimator-time {
    font-weight: 700;
    color: #2C5282;
    font-size: 1.1rem;
}

/* ==================== HERITAGE QUOTE GENERATOR ==================== */

.quote-generator {
    background: linear-gradient(135deg, rgba(26, 95, 60, 0.1) 0%, rgba(10, 61, 15, 0.05) 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
    border: 2px solid rgba(26, 95, 60, 0.2);
}

.quote-display {
    font-size: 1.5rem;
    font-style: italic;
    color: #1A5F3C;
    margin-bottom: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-btn {
    background: linear-gradient(135deg, #1A5F3C 0%, #0A3D0F 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 95, 60, 0.3);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .mood-selector {
        gap: 0.5rem;
    }

    .mood-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }

    .calendar-grid {
        gap: 0.5rem;
    }

    .story-quote {
        font-size: 1.1rem;
    }

    .quote-display {
        font-size: 1.2rem;
    }
}