/* CF7 Country Field – Frontend Styles */

.cf7-country-wrap {
    display: inline-block;
    position: relative;
    width: 100%;
}

.cf7-country-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    display: block;
    width: 100%;
    padding: 0.55em 2.4em 0.55em 0.75em;
    font-size: 1em;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    /* Custom caret arrow via inline SVG background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 10px 7px;
}

.cf7-country-dropdown:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.25);
}

/* Invalid state (CF7 adds .wpcf7-not-valid) */
.cf7-country-dropdown.wpcf7-not-valid {
    border-color: #dc3232;
    box-shadow: 0 0 0 2px rgba(220, 50, 50, 0.2);
}

/* Placeholder option styling */
.cf7-country-dropdown option[value=""] {
    color: #888;
}

/* Responsive tweak */
@media (max-width: 480px) {
    .cf7-country-dropdown {
        font-size: 16px; /* prevents iOS zoom */
    }
}
