/*
Theme Name: Homirx Child
Theme URI: https://gaviaspreview.com/wp/homirx/
Author URI: https://themeforest.net/user/gavias
Author: Gaviasthemes Team
Description: Child theme for the Homirx theme.
Template: homirx
*/

        .cool-cf7-container *,
        .cool-cf7-container *::before,
        .cool-cf7-container *::after {
            box-sizing: border-box;
        }

        /* ================================================
           KONTAINER UTAMA - LEBIH KECIL DI DESKTOP
        ================================================ */
        .cool-cf7-container {
            max-width: 480px;
            width: 100%;
            margin: 2rem auto;
            background: #ffffff;
            border-radius: 28px;
            padding: 24px 28px;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
        }

        @media (max-width: 640px) {
            .cool-cf7-container {
                max-width: 94%;
                padding: 20px 18px;
            }
        }
        @media (max-width: 480px) {
            .cool-cf7-container {
                padding: 18px 16px;
            }
        }

        /* ================================================
           FIELD WRAPPER + IKON DI DALAM FIELD (KIRI)
        ================================================ */
        .cool-field {
            position: relative;
            margin-bottom: 22px;
            transition: transform 0.2s ease;
        }
        .cool-field:hover {
            transform: translateY(-1px);
        }
        .cool-field .field-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #818cf8;
            z-index: 12;
            line-height: 0;
            transition: all 0.25s ease-out;
            pointer-events: none;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .cool-field:focus-within .field-icon {
            color: #4f46e5;
            transform: translateY(-50%) scale(1.12);
        }

        /* ========== STYLING INPUT, TEL, SELECT ========== */
        .cool-cf7-container input[type="text"],
        .cool-cf7-container input[type="tel"],
        .cool-cf7-container select {
            width: 100% !important;
            padding: 14px 16px 14px 48px !important;
            border: 2px solid #e9edf2 !important;
            border-radius: 18px !important;
            background-color: #ffffff !important;
            font-size: 15px !important;
            font-weight: 500 !important;
            outline: none !important;
            transition: all 0.25s ease-in-out !important;
            font-family: inherit;
        }

        /* ----- PERBAIKAN UTAMA UNTUK DROPDOWN (agar teks terlihat) ----- */
        .cool-cf7-container select,
        .cool-cf7-container select option,
        .cool-cf7-container select:focus,
        .cool-cf7-container select:active {
            color: #1e293b !important;      /* teks gelap pekat */
            background-color: #ffffff !important;
        }

        /* Memastikan setiap opsi dalam dropdown memiliki warna gelap */
        .cool-cf7-container select option {
            color: #1e293b !important;
            background-color: #ffffff !important;
            font-weight: normal;
            padding: 10px;
        }

        /* Efek hover pada opsi (tidak wajib, tapi biar konsisten) */
        .cool-cf7-container select option:hover {
            background-color: #f1f5f9 !important;
            color: #0f172a !important;
        }

        /* Warna teks saat select sedang menampilkan pilihan yang sudah dipilih */
        .cool-cf7-container select:not(:focus) {
            color: #1e293b !important;
        }

        /* Styles untuk fokus dan border */
        .cool-cf7-container input:focus,
        .cool-cf7-container select:focus {
            border-color: #818cf8 !important;
            background-color: #ffffff !important;
            box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18), 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
            transform: scale(1.01);
        }

        .cool-cf7-container input:hover,
        .cool-cf7-container select:hover {
            border-color: #cbd5e1 !important;
        }

        /* Icon panah dropdown di kanan (tetap ada) */
        .cool-cf7-container select {
            appearance: none;
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 18px;
            padding-right: 44px !important;
        }

        /* Placeholder */
        .cool-cf7-container ::placeholder {
            color: #94a3b8;
            font-weight: 400;
            font-size: 14px;
        }

        /* ================================================
           SUBMIT BUTTON
        ================================================ */
        .cool-action {
            margin-top: 28px;
        }
        .cool-action [type="submit"] {
            width: 100%;
            padding: 16px 20px !important;
            background: linear-gradient(105deg, #25d366 0%, #128c7e 100%) !important;
            color: white !important;
            font-weight: 700 !important;
            font-size: 1rem;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            border: none !important;
            border-radius: 40px !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            box-shadow: 0 12px 18px -8px rgba(37, 211, 102, 0.35) !important;
        }
        .cool-action [type="submit"]:hover {
            transform: translateY(-3px);
            filter: brightness(1.05);
            box-shadow: 0 20px 25px -8px rgba(37, 211, 102, 0.5);
        }

        /* ================================================
           VALIDASI CF7
        ================================================ */
        .wpcf7-not-valid-tip {
            font-size: 12px !important;
            margin-top: 6px;
            margin-left: 12px;
            color: #f97316 !important;
            background: #fff7ed;
            display: inline-block;
            padding: 4px 12px;
            border-radius: 30px;
        }
        .wpcf7-response-output {
            border-radius: 20px !important;
            margin: 20px 0 0 0 !important;
            padding: 14px 20px !important;
            text-align: center;
        }

        /* ================================================
           RESPONSIVE
        ================================================ */
        @media (max-width: 480px) {
            .cool-cf7-container input,
            .cool-cf7-container select {
                padding: 12px 14px 12px 44px !important;
                font-size: 14px !important;
            }
            .cool-field .field-icon svg {
                width: 18px;
                height: 18px;
            }
            .cool-field .field-icon {
                left: 14px;
            }
			
/* Saat dropdown dibuka & item di-highlight */
.cool-cf7-container select option:checked,
.cool-cf7-container select option:focus,
.cool-cf7-container select option:active {
    background-color: #6366f1 !important; /* warna highlight */
    color: #ffffff !important;            /* teks putih biar kontras */
}

/* Untuk Chrome / Safari (WebKit fix) */
.cool-cf7-container select option:checked {
    background: #6366f1 linear-gradient(0deg, #6366f1 0%, #6366f1 100%);
    color: #ffffff !important;
}

/* Saat select dalam kondisi focus */
.cool-cf7-container select:focus {
    color: #1e293b !important;
}

/* Optional: hover efek (tidak semua browser support) */
.cool-cf7-container select option:hover {
    background-color: #818cf8 !important;
    color: #ffffff !important;
}
			
