/* ================================================
   TripByTravelers — Custom Overrides (color.css)
   ================================================ */

/* --- Hero Slider --- */
.hero-section-2 {
    position: relative;
    overflow: hidden;
}

.hero-section-2 .swiper,
.hero-section-2 .hero-slider {
    width: 100%;
}

/* Hero nav arrows */
.hero-next-btn,
.hero-prev-btn {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    width: 52px !important;
    height: 52px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(4px);
}
.hero-next-btn::after,
.hero-prev-btn::after {
    font-size: 16px !important;
    font-weight: 700 !important;
}
.hero-next-btn:hover,
.hero-prev-btn:hover {
    background: var(--theme-color, #2ca4ce) !important;
    border-color: var(--theme-color, #2ca4ce) !important;
}

/* Hero pagination dots */
.hero-dot {
    bottom: 30px !important;
}
.hero-dot .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s;
}
.hero-dot .swiper-pagination-bullet-active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* Hero buttons row */
.hero-button {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.hero-button .theme-btn.style-2 {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    color: #fff !important;
}
.hero-button .theme-btn.style-2:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--header-color, #0A1F24) !important;
}
.hero-button .theme-btn.style-2::before {
    background: #fff !important;
}

/* Ensure hero background images cover fully */
.hero-2.bg-cover {
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* Fix hero content visibility and prevent white background overlap */
.hero-2 .hero-content {
    position: relative;
    z-index: 10;
    padding-right: 20px;
}

/* Ensure hero section doesn't show white body background */
.hero-section-2 {
    background-color: transparent;
    min-height: 600px;
}

/* Fix for rounded corners showing white background */
.hero-section-2 .hero-2 {
    overflow: hidden;
}

/* --- Contact Form Fixes --- */
/* Ensure contact form inputs are always clickable */
.contact-form-wrap {
    position: relative;
    z-index: 100;
}

/* Fix any meanmenu overlay issues */
.meanmenu-reveal {
    z-index: 9999 !important;
}

.mean-push {
    display: none !important;
}

/* ============================================
    Contact Page — Redesign
    ============================================ */

/* --- Hero --- */
.cp-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a1929;
}

.cp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('../images/hero-bg.jpg') center/cover no-repeat;
}

.cp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,25,41,.88) 0%, rgba(10,25,41,.65) 60%, rgba(232,114,42,.15) 100%);
}

.cp-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cp-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .18;
}

.cp-shape-1 {
    width: 500px;
    height: 500px;
    background: #e8722a;
    top: -180px;
    right: -100px;
    animation: cp-float 14s ease-in-out infinite alternate;
}

.cp-shape-2 {
    width: 350px;
    height: 350px;
    background: #2ca4ce;
    bottom: -120px;
    left: -60px;
    animation: cp-float 18s ease-in-out infinite alternate-reverse;
}

.cp-shape-3 {
    width: 200px;
    height: 200px;
    background: #f59e0b;
    top: 40%;
    right: 20%;
    animation: cp-float 12s ease-in-out infinite alternate;
}

@keyframes cp-float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, -30px) scale(1.08); }
    100% { transform: translate(-20px, 20px) scale(.95); }
}

.cp-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 0 100px;
}

.cp-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(232,114,42,.15);
    color: #e8722a;
    border: 1px solid rgba(232,114,42,.25);
    border-radius: 30px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cp-hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #e8722a;
    border-radius: 50%;
    animation: cp-pulse 2s ease-in-out infinite;
}

@keyframes cp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(.7); }
}

.cp-hero-title {
    font-family: var(--font-head, 'Playfair Display', Georgia, serif);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.cp-hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,.7);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--orange, #e8722a);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    font-size: .95rem;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(232,114,42,.35);
}

.cp-hero-cta:hover {
    background: var(--orange-dark, #c95e1a);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232,114,42,.45);
}

.cp-hero-cta svg {
    transition: transform .3s ease;
}

.cp-hero-cta:hover svg {
    transform: translateY(3px);
}

/* --- Main Section --- */
.cp-main {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.cp-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 48px;
    align-items: start;
}

/* --- Cards --- */
.cp-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow:
        0 1px 3px rgba(0,0,0,.04),
        0 8px 30px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.04);
}

.cp-card h3 {
    font-family: var(--font-head, 'Playfair Display', Georgia, serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: #0a1929;
    margin-bottom: 14px;
}

.cp-card-desc {
    color: #64748b;
    font-size: .92rem;
    line-height: 1.65;
    margin-bottom: 30px;
}

/* --- Contact Info --- */
.cp-contact-items {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 30px;
}

.cp-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cp-contact-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8722a 0%, #f59e0b 100%);
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(232,114,42,.25);
}

.cp-contact-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 2px;
}

.cp-contact-value {
    display: block;
    font-size: .9rem;
    color: #334155;
}

.cp-contact-link {
    display: block;
    font-size: .9rem;
    color: #2ca4ce;
    transition: color .3s ease;
}

.cp-contact-link:hover {
    color: var(--orange, #e8722a);
}

/* --- WhatsApp --- */
.cp-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: #25d366;
    color: #fff;
    border-radius: 14px;
    font-weight: 600;
    font-size: .95rem;
    transition: all .3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37,211,102,.25);
}

.cp-whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,.35);
    color: #fff;
}

/* --- Popular Tours --- */
.cp-popular-card {
    background: linear-gradient(135deg, #0a1929 0%, #112843 100%);
    color: #fff;
    border: none;
}

.cp-popular-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: .85;
}

.cp-popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cp-popular-list li {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 14px 0;
}

.cp-popular-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cp-popular-list li:first-child {
    padding-top: 0;
}

.cp-popular-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: all .3s ease;
}

.cp-popular-list a:hover {
    color: #e8722a;
}

.cp-popular-list a span {
    transition: padding-left .3s ease;
}

.cp-popular-list a:hover span {
    padding-left: 6px;
}

.cp-popular-list svg {
    flex-shrink: 0;
    opacity: .6;
    transition: all .3s ease;
}

.cp-popular-list a:hover svg {
    opacity: 1;
    color: #e8722a;
}

/* --- Form Area --- */
.cp-form-card {
    padding: 44px;
}

.cp-form-card h4 {
    font-family: var(--font-head, 'Playfair Display', Georgia, serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a1929;
    margin-bottom: 22px;
}

/* --- Alerts --- */
.cp-alert {
    display: flex;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 14px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.cp-alert svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.cp-alert strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.cp-alert p {
    margin: 0;
    font-size: .9rem;
}

.cp-alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.cp-alert li {
    font-size: .88rem;
    margin-bottom: 3px;
}

.cp-alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cp-alert-success svg {
    color: #059669;
}

.cp-alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cp-alert-error svg {
    color: #dc2626;
}

/* --- Form Groups --- */
.cp-form-group {
    margin-bottom: 32px;
}

.cp-form-group:last-of-type {
    margin-bottom: 0;
}

/* --- Form Row --- */
.cp-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cp-form-row:last-child {
    margin-bottom: 0;
}

/* --- Fields --- */
.cp-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-field label {
    font-size: .85rem;
    font-weight: 600;
    color: #334155;
}

/* --- Input Wrapper --- */
.cp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cp-input-wrap svg.cp-input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    transition: color .3s ease;
}

.cp-input-wrap input,
.cp-input-wrap textarea,
.cp-input-wrap select {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: .92rem;
    color: #000000 !important;
    background: #f8fafc;
    transition: all .3s ease;
    font-family: var(--font-body);
}

.cp-input-wrap input:hover,
.cp-input-wrap textarea:hover,
.cp-input-wrap select:hover {
    border-color: #cbd5e1;
}

.cp-input-wrap input:focus,
.cp-input-wrap textarea:focus,
.cp-input-wrap select:focus {
    outline: none;
    border-color: var(--orange, #e8722a);
    box-shadow: 0 0 0 4px rgba(232,114,42,.1);
}

.cp-input-wrap input:focus + svg.cp-input-icon,
.cp-input-wrap textarea:focus + svg.cp-input-icon,
.cp-input-wrap select:focus + svg.cp-input-icon {
    color: var(--orange, #e8722a);
}

.cp-input-wrap input:focus ~ svg.cp-input-icon,
.cp-input-wrap textarea:focus ~ svg.cp-input-icon,
.cp-input-wrap select:focus ~ svg.cp-input-icon {
    color: var(--orange, #e8722a);
}

.cp-input-wrap input:focus,
.cp-input-wrap textarea:focus {
    outline: none;
    border-color: var(--orange, #e8722a);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(232,114,42,.08);
}

.cp-input-wrap input:focus + svg.cp-input-icon,
.cp-input-wrap input:focus ~ svg.cp-input-icon,
.cp-input-wrap textarea:focus + svg.cp-input-icon,
.cp-input-wrap textarea:focus ~ svg.cp-input-icon {
    color: var(--orange, #e8722a);
}

.cp-input-wrap input::placeholder,
.cp-input-wrap textarea::placeholder,
.cp-input-wrap select::placeholder {
    color: #94a3b8;
}

.cp-input-wrap input[type="date"] {
    color: var(--text-primary, #0f172a);
}

.cp-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(.5);
    cursor: pointer;
}

.cp-input-wrap input[type="date"]:hover::-webkit-calendar-picker-indicator {
    filter: invert(.3);
}

/* --- Select --- */
.cp-select-wrap {
    cursor: pointer;
    position: relative;
}

.cp-select-wrap select {
    appearance: none;
    cursor: pointer;
    padding-right: 44px;
    color: var(--text-primary, #0f172a);
    background: #fff;
    font-family: inherit;
}

.cp-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: all .3s ease;
}

.cp-select-wrap:hover .cp-select-arrow {
    color: var(--orange, #e8722a);
}

.cp-select-wrap:focus-within .cp-select-arrow {
    color: var(--orange, #e8722a);
}

.cp-input-wrap input[type="date"] {
    cursor: pointer;
    color-scheme: light;
    -webkit-appearance: none;
    appearance: none;
}

.cp-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.cp-input-wrap input[type="date"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* --- Select --- */
.cp-select-wrap {
    cursor: pointer;
}

.cp-select-wrap select {
    appearance: none;
    cursor: pointer;
    padding-right: 44px;
}

.cp-select-arrow {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    pointer-events: none;
    transition: all .3s ease;
}

.cp-select-wrap:hover .cp-select-arrow {
    color: var(--orange, #e8722a);
}

/* --- Submit --- */
.cp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 36px;
    background: linear-gradient(135deg, #e8722a 0%, #f59e0b 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(232, 114, 42, .3);
    letter-spacing: .02em;
    margin-top: 10px;
}

.cp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232,114,42,.4);
}

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

.cp-submit svg {
    transition: transform .3s ease;
}

.cp-submit:hover svg {
    transform: translateX(4px);
}

/* --- Itinerary Builder --- */
#itinerary-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cp-itinerary-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .3s;
}

.cp-itinerary-row:hover {
    border-color: #cbd5e1;
}

.cp-itinerary-row .custom-city-field {
    grid-column: 1 / -1;
    margin-top: 0;
}

.cp-itinerary-row:hover {
    border-color: #cbd5e1;
}

.cp-itinerary-row .cp-field {
    margin-bottom: 0;
}

.cp-itinerary-row .cp-field label {
    font-size: .8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.cp-itinerary-row .cp-input-wrap svg.cp-input-icon {
    left: 12px;
    width: 16px;
    height: 16px;
}

.cp-itinerary-row .cp-input-wrap input {
    padding: 12px 14px 12px 36px;
    font-size: .88rem;
}

.cp-itinerary-row .cp-input-wrap select {
    padding: 12px 14px 12px 36px;
    font-size: .88rem;
    background: #fff;
}

.cp-itinerary-row .custom-city-field {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.cp-itinerary-row {
    position: relative;
}

.cp-remove-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fee2e2;
    border: none;
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    transition: all .3s ease;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.cp-itinerary-row .cp-remove-row {
    height: 48px;
}

.cp-remove-row:hover {
    background: #fecaca;
    color: #dc2626;
}

.cp-remove-row svg {
    width: 18px;
    height: 18px;
}

.cp-add-itinerary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: transparent;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    font-family: var(--font-body);
}

.cp-add-itinerary:hover {
    border-color: var(--orange, #e8722a);
    color: var(--orange, #e8722a);
    background: rgba(232, 114, 42, .04);
}

.cp-add-itinerary svg {
    width: 16px;
    height: 16px;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .cp-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cp-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .cp-popular-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .cp-itinerary-row {
        grid-template-columns: 1fr !important;
    }

    .cp-remove-row {
        align-self: end;
    }

    .cp-hero {
        min-height: 420px;
    }

    .cp-hero-inner {
        padding: 100px 0 80px;
    }

    .cp-main {
        padding: 56px 0 72px;
    }

    .cp-sidebar {
        grid-template-columns: 1fr;
    }

    .cp-card {
        padding: 28px;
    }

    .cp-form-card {
        padding: 28px 24px;
    }

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

@media (max-width: 480px) {
    .cp-hero-inner {
        padding: 80px 0 64px;
    }

    .cp-form-card {
        padding: 24px 18px;
    }

    .cp-card {
        padding: 22px 18px;
    }

    .cp-submit {
        padding: 16px 28px;
    }
}

/* --- Video Play Button --- */
.video-wrapper .video-image .video-btn {
    width: 100px !important;
    height: 100px !important;
    line-height: 100px !important;
    font-size: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.15),
                0 0 0 32px rgba(255, 255, 255, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    animation: pulse-ring 2.5s ease-out infinite;
}
.video-wrapper .video-image .video-btn:hover {
    transform: translate(-50%, -50%) scale(1.12) !important;
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.2),
                0 0 0 40px rgba(255, 255, 255, 0.08) !important;
}
.video-wrapper .video-image .video-btn i {
    margin-left: 5px; /* optical center for play triangle */
    line-height: 1;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0   rgba(255,255,255,.35), 0 0 0 0   rgba(255,255,255,.15); }
    70%  { box-shadow: 0 0 0 22px rgba(255,255,255,.0),  0 0 0 44px rgba(255,255,255,.0); }
    100% { box-shadow: 0 0 0 0   rgba(255,255,255,.0),  0 0 0 0   rgba(255,255,255,.0); }
}

/* --- Swiper fade fix --- */
.hero-slider .swiper-slide {
    opacity: 0 !important;
    transition: opacity 0.8s ease !important;
}
.hero-slider .swiper-slide-active {
    opacity: 1 !important;
}
