/* ==========================================================================
   OTABIROUTE CONTACT US PAGE REDESIGN STYLESHEET
   Modern, Premium, High-Trust Travel Concierge UI/UX
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --contact-primary: #d90429;
    --contact-primary-hover: #b90322;
    --contact-crimson-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
    --contact-navy-text: #0f172a;
    --contact-slate-muted: #64748b;
    --contact-border: #e2e8f0;
    --contact-bg-subtle: #f8fafc;
    --contact-card-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
    --contact-card-hover: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.04);
}

.contact-page-root {
    background-color: #ffffff;
    color: var(--contact-navy-text);
    font-family: 'Plus Jakarta Sans', var(--font-main, 'Josefin Sans', sans-serif);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.contact-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.contact-hero {
    position: relative;
    min-height: 480px;
    background-color: #0b1a30;
    background-image: url('../images/contact/contact_hero_fuji.jpg');
    background-position: center 25%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.5rem 0 7rem 0;
    overflow: hidden;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 25, 47, 0.92) 0%,
        rgba(10, 25, 47, 0.82) 42%,
        rgba(10, 25, 47, 0.45) 75%,
        rgba(10, 25, 47, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

/* Pill Badge */
.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.contact-hero-badge i {
    font-size: 0.8rem;
}

/* Hero Title */
.contact-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.contact-hero-title .title-brand-accent {
    color: #7dd3fc;
    position: relative;
    display: inline-block;
}

.contact-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    line-height: 1.65;
    color: rgba(241, 245, 249, 0.9);
    margin: 0 0 2.25rem 0;
    font-weight: 400;
}

/* Trust Highlight Pills in Hero */
.contact-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
}

.contact-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-highlight-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-highlight-text {
    display: flex;
    flex-direction: column;
}

.contact-highlight-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.contact-highlight-desc {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.25;
}

/* Script Overlay on Right: "Explore Japan" */
.contact-hero-script-tag {
    position: absolute;
    right: 5%;
    top: 52%;
    transform: translateY(-50%) rotate(-12deg);
    z-index: 2;
    pointer-events: none;
    text-align: center;
}

.contact-script-text {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    display: block;
    line-height: 0.9;
    letter-spacing: 0.02em;
}

/* Bottom Curve Divider */
.contact-hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.contact-hero-curve svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.contact-hero-curve path {
    fill: #ffffff;
}

/* ==========================================================================
   2. MAIN INTERACTIVE CONTENT SECTION (2 COLUMNS)
   ========================================================================== */
.contact-main-section {
    padding: 3rem 0 4rem;
    position: relative;
    background-color: #ffffff;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2.5rem;
    align-items: start;
}

/* Eyebrows & Section Headings */
.contact-eyebrow-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.contact-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0284c7;
}

.contact-eyebrow-line {
    width: 38px;
    height: 2.5px;
    background: #38bdf8;
    border-radius: 2px;
}

.contact-section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--contact-navy-text);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.contact-section-subheading {
    font-size: 0.98rem;
    color: var(--contact-slate-muted);
    margin: 0 0 1.75rem 0;
    line-height: 1.5;
}

/* Channels 2-Card Row */
.contact-channels-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Base Channel Card */
.contact-channel-card {
    border-radius: 18px;
    padding: 1.5rem 1.4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-channel-card:hover {
    transform: translateY(-4px);
}

/* Email Concierge Card Theme */
.card-email-theme {
    background: linear-gradient(145deg, #fff5f6 0%, #ffffff 100%);
    border: 1.5px solid rgba(244, 63, 94, 0.16);
    box-shadow: 0 8px 24px -6px rgba(244, 63, 94, 0.08);
}

.card-email-theme:hover {
    box-shadow: 0 16px 32px -8px rgba(244, 63, 94, 0.14);
}

/* WhatsApp Card Theme */
.card-whatsapp-theme {
    background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.18);
    box-shadow: 0 8px 24px -6px rgba(34, 197, 94, 0.08);
}

.card-whatsapp-theme:hover {
    box-shadow: 0 16px 32px -8px rgba(34, 197, 94, 0.14);
}

/* Card Icons */
.channel-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.channel-icon-email {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

.channel-icon-whatsapp {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

/* Watermarks */
.channel-watermark {
    position: absolute;
    top: 10px;
    right: 12px;
    pointer-events: none;
    user-select: none;
    opacity: 0.35;
}

.channel-watermark-wa {
    font-size: 3.5rem;
    color: #22c55e;
    opacity: 0.12;
    top: 14px;
    right: 14px;
}

.channel-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--contact-navy-text);
    margin: 0 0 0.35rem 0;
}

.channel-card-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--contact-slate-muted);
    margin: 0 0 1.25rem 0;
}

/* Direct Pill Buttons */
.channel-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 1.15rem;
}

.pill-email {
    background: #fff0f2;
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.25);
}

.pill-email:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

.pill-whatsapp {
    background: #ecfdf5;
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.pill-whatsapp:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

/* Sub-row in channel card */
.channel-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(203, 213, 225, 0.6);
    font-size: 0.82rem;
    color: var(--contact-slate-muted);
}

.channel-card-footer a {
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.channel-card-footer a:hover {
    color: #e11d48;
}

.channel-arrow-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.contact-channel-card:hover .channel-arrow-circle {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Green Pulse indicator */
.channel-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    position: relative;
    margin-right: 6px;
}

.channel-status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.4);
    animation: wa-pulse 2s infinite ease-in-out;
}

@keyframes wa-pulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}

/* ==========================================================================
   OPERATING HOURS & COMMITMENT CARD
   ========================================================================== */
.contact-hours-card {
    background: linear-gradient(145deg, #f0f7ff 0%, #f8fafc 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.16);
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.06);
}

.contact-hours-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.contact-hours-header i {
    font-size: 1.2rem;
    color: #0284c7;
}

.contact-hours-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--contact-navy-text);
}

.contact-hours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.hours-col-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hours-col-icon {
    font-size: 1.15rem;
    color: #0284c7;
    margin-bottom: 4px;
}

.hours-label-top {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--contact-navy-text);
}

.hours-label-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.hours-label-note {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--contact-slate-muted);
}

/* ==========================================================================
   SEND US A MESSAGE (INQUIRY FORM CARD)
   ========================================================================== */
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 2.25rem 2.25rem 2.5rem;
    box-shadow: var(--contact-card-shadow);
    position: relative;
    overflow: hidden;
}

.contact-form-sakura-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 130px;
    pointer-events: none;
    opacity: 0.85;
}

.contact-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.4rem;
}

.contact-form-header-icon {
    font-size: 1.35rem;
    color: #0284c7;
}

.contact-form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--contact-navy-text);
    margin: 0;
}

.contact-form-subtitle {
    font-size: 0.9rem;
    color: var(--contact-slate-muted);
    margin: 0 0 1.75rem 0;
}

/* Form Groups & Inputs */
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form-group {
    margin-bottom: 1rem;
    position: relative;
}

.contact-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.contact-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.contact-input-wrapper input,
.contact-input-wrapper select,
.contact-input-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.contact-input-wrapper textarea {
    padding-top: 0.85rem;
    min-height: 110px;
    resize: vertical;
}

.contact-input-wrapper.textarea-wrapper .contact-input-icon {
    top: 14px;
}

.contact-input-wrapper input:focus,
.contact-input-wrapper select:focus,
.contact-input-wrapper textarea:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.contact-input-wrapper input:focus + .contact-input-icon,
.contact-input-wrapper select:focus + .contact-input-icon,
.contact-input-wrapper textarea:focus + .contact-input-icon {
    color: #e11d48;
}

.contact-input-wrapper input::placeholder,
.contact-input-wrapper textarea::placeholder {
    color: #94a3b8;
}

/* Custom Dropdown Arrow */
.contact-input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Submit Button */
.contact-btn-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--contact-crimson-gradient);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.88rem 1.75rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.32);
    transition: all 0.25s ease;
    margin-top: 0.5rem;
}

.contact-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.42);
    filter: brightness(1.05);
}

.contact-btn-submit:active {
    transform: translateY(0);
}

/* Feedback banners */
.contact-alert-success {
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    color: #065f46;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
}

.contact-alert-error {
    background: #fef2f2;
    border: 1.5px solid #ef4444;
    color: #991b1b;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   3. MAIN DISPATCH & MEETING CENTERS
   ========================================================================== */
.contact-dispatch-section {
    padding: 3.5rem 0 4.5rem;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.contact-dispatch-header {
    margin-bottom: 2rem;
}

.contact-dispatch-desc {
    max-width: 820px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--contact-slate-muted);
    margin: 0 0 1rem 0;
}

.contact-dispatch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e11d48;
}

.contact-dispatch-badge i {
    font-size: 0.95rem;
}

/* 5 Cards Row */
.contact-dispatch-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.dispatch-city-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.dispatch-city-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--contact-card-hover);
    border-color: #cbd5e1;
}

.dispatch-card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
}

.dispatch-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dispatch-city-card:hover .dispatch-card-media img {
    transform: scale(1.06);
}

.dispatch-card-body {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dispatch-city-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--contact-navy-text);
}

.dispatch-city-region {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--contact-slate-muted);
}

.dispatch-city-region i {
    color: #e11d48;
    font-size: 0.78rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-dispatch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 3.5rem 0 5.5rem 0;
        min-height: 400px;
    }

    .contact-hero-script-tag {
        display: none;
    }

    .contact-channels-row {
        grid-template-columns: 1fr;
    }

    .contact-hours-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .contact-form-card {
        padding: 1.75rem 1.4rem 2rem;
    }

    .contact-dispatch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-dispatch-grid {
        grid-template-columns: 1fr;
    }
}
