/* =================================================================
   ZippyFeed - Contact Page Styles
   Extracted from contact.php inline <style> block
   Path: /css/contact.css
   ================================================================= */

    /* ============================================================
       BASE STYLES
    ============================================================ */
    * {
        box-sizing: border-box;
    }

    /* ---- Breadcrumb Banner ---- */
    .breadcrumb-banner {
        position: relative;
            background-image: url('../assets/contact_us.png') !important;
        background-size: cover;
        background-position: center;
        padding: 250px 0px 300px;
        text-align: center;
    }

    .breadcrumb-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgb(101 101 110 / 37%), rgb(56 56 68 / 10%));
    }

    .breadcrumb-banner .container {
        position: relative;
        z-index: 2;
    }

    .breadcrumb-banner h1 {
        color: #fff;
        font-size: 2.6rem;
        font-weight: 800;
        margin-bottom: .6rem;
    }

    .breadcrumb-list {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .breadcrumb-list li {
        color: rgba(255, 255, 255, .75);
        font-size: .95rem;
    }

    .breadcrumb-list li a {
        color: #fff;
        text-decoration: none;
    }

    .breadcrumb-list li+li::before {
        content: "/";
        margin-right: 8px;
        color: rgba(255, 255, 255, .5);
    }

    .breadcrumb-list li.active {
        color: #fff;
        font-weight: 600;
    }

    /* ---- Success/Error Messages ---- */
    .alert-msg {
        padding: 14px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
        animation: slideDown 0.5s ease;
        display: none;
    }

    .alert-msg.show {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .alert-msg.success {
        background: #e8f5e9;
        color: #2e7d32;
        border-left: 4px solid #2e7d32;
    }

    .alert-msg.error {
        background: #FDE8E8;
        color: #C81D25;
        border-left: 4px solid #C81D25;
    }

    .alert-msg i {
        font-size: 1.2rem;
    }

    /* ---- Field error styles ---- */
    .form-control-custom.error {
        border-color: #C81D25 !important;
        background: #FDE8E8 !important;
    }

    .field-error {
        color: #C81D25;
        font-size: 0.75rem;
        margin-top: 4px;
        display: none;
    }

    .field-error.show {
        display: block;
    }

    /* ---- Redirect overlay ---- */
    .redirect-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .redirect-overlay.is-active {
        display: flex;
    }

    .redirect-box {
        background: #fff;
        border-radius: 24px;
        padding: 40px 48px;
        max-width: 420px;
        width: 100%;
        text-align: center;
        animation: modalSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        position: relative;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .redirect-close-btn {
        position: absolute;
        top: 12px;
        right: 16px;
        background: none;
        border: none;
        font-size: 20px;
        color: #6b5642;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 8px;
        transition: all 0.3s;
        line-height: 1;
    }

    .redirect-close-btn:hover {
        background: #f5f0eb;
        color: #C81D25;
    }

    .redirect-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        margin-top: 16px;
        flex-wrap: wrap;
    }

    .btn-stay-here {
        display: inline-block;
        padding: 10px 24px;
        background: transparent;
        color: #6b5642;
        border: 2px solid #EDE1CB;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
    }

    .btn-stay-here:hover {
        border-color: #C81D25;
        color: #C81D25;
        transform: translateY(-2px);
    }

    .redirect-box .btn-whatsapp-now {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 28px;
        background: #25D366;
        color: #fff;
        border: none;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.3s;
    }

    .redirect-box .btn-whatsapp-now:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.4);
    }

    .redirect-box .btn-whatsapp-now i {
        font-size: 1.1rem;
    }

    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(20px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .redirect-box .check-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: #e8f5e9;
        color: #2e7d32;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        margin: 0 auto 16px;
    }

    .redirect-box h3 {
        font-family: 'Fraunces', serif;
        font-size: 1.3rem;
        font-weight: 700;
        color: #241608;
        margin-bottom: 4px;
    }

    .redirect-box p {
        color: #6b5642;
        font-size: .95rem;
        margin-bottom: 20px;
    }

    .redirect-box .redirect-spinner {
        display: inline-block;
        width: 32px;
        height: 32px;
        border: 3px solid #EDE1CB;
        border-top-color: #C81D25;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

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

    .redirect-box .redirect-timer {
        margin-top: 12px;
        font-size: .82rem;
        color: #6b5642;
    }

    .redirect-box .redirect-timer strong {
        color: #C81D25;
    }

    /* ---- Button disabled state ---- */
    .btn-chili:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }

    .btn-chili .spinner {
        display: inline-block;
        width: 18px;
        height: 18px;
        border: 2px solid #fff;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin-right: 8px;
    }

    /* ============================================================
       RESPONSIVE STYLES
    ============================================================ */

    /* ---- LARGE DESKTOPS (1200px and up) ---- */
    @media (min-width: 1200px) {
        .contact-info-card {
            padding: 18px 20px;
        }
    }

    /* ---- DESKTOPS (992px - 1199px) ---- */
    @media (max-width: 1199px) {
        .breadcrumb-banner {
            padding: 200px 0 250px;
        }

        .breadcrumb-banner h1 {
            font-size: 2.3rem;
        }

        .redirect-box {
            padding: 35px 40px;
            max-width: 400px;
        }
    }

    /* ---- TABLETS & SMALL DESKTOPS (768px - 991px) ---- */
    @media (max-width: 991px) {
        .breadcrumb-banner {
            padding: 160px 0 200px;
        }

        .breadcrumb-banner h1 {
            font-size: 2rem;
        }

        .section-pad {
            padding: 60px 0;
        }

        .contact-form-card {
            padding: 30px 25px;
        }

        .row.g-5 {
            --bs-gutter-y: 2rem;
        }

        .redirect-box {
            padding: 30px 35px;
            max-width: 380px;
        }

        .redirect-box .check-icon {
            width: 56px;
            height: 56px;
            font-size: 28px;
        }

        .redirect-box h3 {
            font-size: 1.2rem;
        }
    }

    /* ---- TABLETS (576px - 767px) ---- */
    @media (max-width: 767px) {

        /* Breadcrumb */
        .breadcrumb-banner {
            background-image: url('../assets/contact.jpg');
            padding: 120px 0 160px;
        }

        .breadcrumb-banner h1 {
            font-size: 1.8rem;
        }

        .breadcrumb-list li {
            font-size: 0.85rem;
        }

        /* Section */
        .section-pad {
            padding: 50px 0;
        }

        .section-title {
            font-size: 1.8rem;
        }

        /* Contact Info Cards */
        .contact-info-card {
            padding: 14px 16px;
            margin-bottom: 12px;
        }

        .contact-info-card .ci-ico {
            width: 40px;
            height: 40px;
            min-width: 40px;
            font-size: 18px;
        }

        .contact-info-card h6 {
            font-size: 0.9rem;
        }

        .contact-info-card p {
            font-size: 0.85rem;
        }

        /* Contact Form */
        .contact-form-card {
            padding: 25px 20px;
            border-radius: 16px;
        }

        .form-floating-group label {
            font-size: 0.85rem;
        }

        .form-control-custom {
            padding: 10px 14px;
            font-size: 0.9rem;
            min-height: 44px;
        }

        textarea.form-control-custom {
            min-height: 100px;
        }

        /* Buttons */
        .btn-chili {
            padding: 12px 28px;
            font-size: 0.95rem;
            width: 100%;
            justify-content: center;
        }

        /* Map */
        iframe {
            height: 280px;
        }

        /* Redirect Overlay */
        .redirect-box {
            padding: 28px 24px;
            max-width: 340px;
            margin: 10px;
            border-radius: 20px;
        }

        .redirect-box .check-icon {
            width: 50px;
            height: 50px;
            font-size: 24px;
            margin-bottom: 12px;
        }

        .redirect-box h3 {
            font-size: 1.1rem;
        }

        .redirect-box p {
            font-size: 0.85rem;
            margin-bottom: 16px;
        }

        .redirect-actions {
            flex-direction: column;
            gap: 10px;
        }

        .redirect-actions .btn-whatsapp-now,
        .redirect-actions .btn-stay-here {
            width: 100%;
            justify-content: center;
            padding: 12px 20px;
            font-size: 0.85rem;
        }

        .redirect-box .redirect-spinner {
            width: 28px;
            height: 28px;
        }

        .redirect-box .redirect-timer {
            font-size: 0.75rem;
        }

        .redirect-close-btn {
            top: 8px;
            right: 12px;
            font-size: 18px;
            padding: 2px 6px;
        }
    }

    /* ---- MOBILE PHONES (400px - 575px) ---- */
    @media (max-width: 575px) {

        /* Breadcrumb */
        .breadcrumb-banner {
            padding: 80px 0 120px;
        }

        .breadcrumb-banner h1 {
            font-size: 1.5rem;
        }

        .breadcrumb-list li {
            font-size: 0.75rem;
        }

        /* Section */
        .section-pad {
            padding: 40px 0;
        }

        .section-title {
            font-size: 1.5rem;
        }

        .eyebrow {
            font-size: 0.7rem;
            letter-spacing: 0.08em;
        }

        /* Contact Info */
        .contact-info-card {
            padding: 12px 14px;
            border-radius: 12px;
        }

        .contact-info-card .ci-ico {
            width: 36px;
            height: 36px;
            min-width: 36px;
            font-size: 16px;
        }

        .contact-info-card h6 {
            font-size: 0.8rem;
        }

        .contact-info-card p {
            font-size: 0.8rem;
        }

        /* Form */
        .contact-form-card {
            padding: 20px 16px;
            border-radius: 14px;
        }

        .form-floating-group label {
            font-size: 0.8rem;
        }

        .form-control-custom {
            padding: 8px 12px;
            font-size: 0.85rem;
            min-height: 40px;
            border-radius: 8px;
        }

        textarea.form-control-custom {
            min-height: 80px;
        }

        .form-floating-group {
            margin-bottom: 14px;
        }

        /* Select dropdown */
        select.form-control-custom {
            padding: 8px 12px;
            font-size: 0.85rem;
            min-height: 40px;
        }

        /* Buttons */
        .btn-chili {
            padding: 10px 24px;
            font-size: 0.85rem;
            width: 100%;
            justify-content: center;
            border-radius: 8px;
        }

        /* Map */
        iframe {
            height: 220px;
        }

        /* Alerts */
        .alert-msg {
            padding: 12px 16px;
            font-size: 0.85rem;
            border-radius: 10px;
        }

        .alert-msg i {
            font-size: 1rem;
        }

        /* Redirect Overlay */
        .redirect-overlay {
            padding: 10px;
        }

        .redirect-box {
            padding: 24px 18px;
            max-width: 300px;
            border-radius: 16px;
        }

        .redirect-box .check-icon {
            width: 44px;
            height: 44px;
            font-size: 20px;
            margin-bottom: 10px;
        }

        .redirect-box h3 {
            font-size: 1rem;
        }

        .redirect-box p {
            font-size: 0.8rem;
            margin-bottom: 14px;
        }

        .redirect-actions .btn-whatsapp-now,
        .redirect-actions .btn-stay-here {
            padding: 10px 16px;
            font-size: 0.8rem;
            border-radius: 8px;
        }

        .redirect-box .redirect-spinner {
            width: 24px;
            height: 24px;
        }

        .redirect-box .redirect-timer {
            font-size: 0.7rem;
            margin-top: 8px;
        }

        .redirect-close-btn {
            top: 6px;
            right: 10px;
            font-size: 16px;
            padding: 2px 4px;
        }
    }

    /* ---- SMALL MOBILE PHONES (320px - 399px) ---- */
    @media (max-width: 399px) {
        .breadcrumb-banner {
            padding: 60px 0 80px;
        }

        .breadcrumb-banner h1 {
            font-size: 1.2rem;
        }

        .section-title {
            font-size: 1.3rem;
        }

        .contact-form-card {
            padding: 16px 12px;
        }

        .form-control-custom {
            padding: 6px 10px;
            font-size: 0.8rem;
            min-height: 36px;
        }

        textarea.form-control-custom {
            min-height: 60px;
        }

        .contact-info-card {
            padding: 10px 12px;
        }

        .contact-info-card .ci-ico {
            width: 32px;
            height: 32px;
            min-width: 32px;
            font-size: 14px;
        }

        .contact-info-card h6 {
            font-size: 0.75rem;
        }

        .contact-info-card p {
            font-size: 0.75rem;
        }

        .btn-chili {
            padding: 8px 18px;
            font-size: 0.8rem;
        }

        iframe {
            height: 180px;
        }

        .redirect-box {
            padding: 20px 14px;
            max-width: 280px;
        }

        .redirect-box .check-icon {
            width: 40px;
            height: 40px;
            font-size: 18px;
        }

        .redirect-box h3 {
            font-size: 0.9rem;
        }

        .redirect-box p {
            font-size: 0.75rem;
        }

        .redirect-actions .btn-whatsapp-now,
        .redirect-actions .btn-stay-here {
            padding: 8px 14px;
            font-size: 0.75rem;
        }
    }

    /* ---- LANDSCAPE MOBILE PHONES ---- */
    @media (max-height: 500px) and (orientation: landscape) {
        .breadcrumb-banner {
            padding: 40px 0 60px;
        }

        .breadcrumb-banner h1 {
            font-size: 1.3rem;
        }

        .section-pad {
            padding: 30px 0;
        }

        .contact-info-card {
            padding: 8px 12px;
            margin-bottom: 6px;
        }

        .contact-info-card .ci-ico {
            width: 28px;
            height: 28px;
            min-width: 28px;
            font-size: 12px;
        }

        .form-floating-group {
            margin-bottom: 8px;
        }

        .form-control-custom {
            padding: 6px 10px;
            min-height: 32px;
            font-size: 0.8rem;
        }

        textarea.form-control-custom {
            min-height: 50px;
        }

        iframe {
            height: 150px;
        }

        .redirect-box {
            padding: 16px 20px;
            max-width: 320px;
        }

        .redirect-box .check-icon {
            width: 36px;
            height: 36px;
            font-size: 16px;
            margin-bottom: 8px;
        }

        .redirect-box h3 {
            font-size: 0.9rem;
        }

        .redirect-box p {
            font-size: 0.75rem;
            margin-bottom: 10px;
        }

        .redirect-actions {
            gap: 6px;
        }

        .redirect-actions .btn-whatsapp-now,
        .redirect-actions .btn-stay-here {
            padding: 6px 14px;
            font-size: 0.7rem;
        }

        .redirect-box .redirect-spinner {
            width: 20px;
            height: 20px;
        }
    }

    /* ---- FOLDABLE DEVICES (Galaxy Z Fold, etc.) ---- */
    @media (max-width: 280px) {
        .breadcrumb-banner {
            padding: 40px 0 60px;
        }

        .breadcrumb-banner h1 {
            font-size: 1rem;
        }

        .section-title {
            font-size: 1.1rem;
        }

        .contact-form-card {
            padding: 12px 8px;
        }

        .form-control-custom {
            padding: 4px 8px;
            font-size: 0.7rem;
            min-height: 30px;
        }

        .btn-chili {
            padding: 6px 14px;
            font-size: 0.7rem;
        }

        .contact-info-card {
            padding: 8px 10px;
        }

        .contact-info-card .ci-ico {
            width: 28px;
            height: 28px;
            min-width: 28px;
            font-size: 12px;
        }

        iframe {
            height: 150px;
        }

        .redirect-box {
            padding: 16px 12px;
            max-width: 240px;
        }

        .redirect-box .check-icon {
            width: 32px;
            height: 32px;
            font-size: 14px;
        }

        .redirect-box h3 {
            font-size: 0.8rem;
        }

        .redirect-box p {
            font-size: 0.7rem;
        }
    }

    /* ---- HIGH DPI / RETINA DISPLAYS ---- */
    @media (-webkit-min-device-pixel-ratio: 2),
    (min-resolution: 192dpi) {
        .breadcrumb-banner {
            background-image: url('../assets/contact@2x.jpeg');
        }
    }

    /* ---- PRINT STYLES ---- */
    @media print {
        .breadcrumb-banner {
            padding: 20px 0;
            background: #f5f0eb;
        }

        .breadcrumb-banner::before {
            display: none;
        }

        .btn-chili,
        .redirect-overlay,
        iframe {
            display: none !important;
        }

        .contact-form-card {
            box-shadow: none !important;
            border: 1px solid #ddd;
        }
    }

    /* ---- Accessibility: Reduced Motion ---- */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .redirect-box {
            animation: none !important;
        }
    }

    /* ---- Accessibility: Dark Mode Support ---- */
    @media (prefers-color-scheme: dark) {
        .redirect-box {
            background: #1a1a1a;
        }

        .redirect-box h3 {
            color: #f5f0eb;
        }

        .redirect-box p {
            color: #b0a090;
        }

        .redirect-close-btn {
            color: #b0a090;
        }

        .redirect-close-btn:hover {
            background: #2a2a2a;
            color: #f5f0eb;
        }

        .btn-stay-here {
            color: #b0a090;
            border-color: #3a3a3a;
        }

        .btn-stay-here:hover {
            border-color: #C81D25;
            color: #C81D25;
        }
    }
