/* --- Main Wrapper (The Card) --- */
.ovza-checker-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    
    background-color: #E1FDF7;
    overflow: hidden;
    position: relative;
    font-family: 'Helvetica', 'Arial', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    
    background-image: 
        radial-gradient(circle at 10% 110%, rgba(107, 190, 161, 0.2) 100px, transparent 101px),
        radial-gradient(circle at 90% -10%, rgba(107, 190, 161, 0.2) 120px, transparent 121px);
    background-repeat: no-repeat;
}

/* --- Content Body --- */
.ovza-checker-body {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* --- Typography --- */
.ovza-checker-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.ovza-checker-subtitle {
    font-size: 20px;
    color: #555;
    margin: 0 0 25px 0;
    font-weight: 400;
}

/* --- Form Layout --- */
.ovza-checker-form-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile responsive for Form */
@media (max-width: 768px) {
    .ovza-checker-form-group {
        flex-direction: column;
    }
    .ovza-select-wrapper, .ovza-checker-button {
        width: 100%;
    }
}

/* --- Select2 Customization --- */
.ovza-select-wrapper {
    flex-grow: 1;
    min-width: 250px;
    text-align: left;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: auto !important;
    min-height: 42px;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
}

/* Text inside the closed dropdown */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #999 !important;
    font-size: 16px;
    line-height: 22px !important;
    padding: 9px 35px 9px 15px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered[title] {
    color: #333 !important;
}

/* Hide Select2 default arrow completely to prevent double arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

/* Custom dropdown arrow */
.select2-container--default .select2-selection--single::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #6BBEA1 !important;
    box-shadow: 0 0 0 3px rgba(107, 190, 161, 0.1);
}

/* --- Flag Size Adjustment --- */
/* Flags in the dropdown list */
.select2-results__option .country-flag {
    width: 18px; 
    height: auto; 
    margin-right: 8px;
    vertical-align: -2px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Flag in the selected box (closed state) */
.select2-selection__rendered .country-flag {
    width: 18px;
    height: auto;
    margin-right: 8px;
    vertical-align: -2px;
}

/* --- Button Styling --- */
.ovza-checker-button {
    background-color: #6BBEA1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 35px;
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.ovza-checker-button:hover {
    background-color: #5aa68c;
}

/* --- Result Bar (Footer) --- */
.ovza-result-bar {
    width: 100%;
    padding: 0 20px;
    height: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    box-sizing: border-box;
}

.ovza-result-bar.success {
    background-color: #6BBEA1;
    color: #ffffff;
}

.ovza-result-bar.success a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 8px;
}

.ovza-result-bar.error {
    background-color: #F3F4F6;
    color: #333;
}

/* --- MOBILE: Stack Success Message --- */
@media screen and (max-width: 768px) {
    .ovza-result-bar.success {
        height: auto !important; /* Allow bar to grow taller than 52px */
        flex-direction: column;  /* Stack items vertically */
        padding: 12px;           /* Add breathing room */
        gap: 5px;                /* Space between text and link */
        line-height: 1.4;
    }

    .ovza-result-bar.success a {
        margin-left: 0;          /* Remove side margin */
        display: inline-block;
    }
}