#custom_contact_form_wrapper_12345 {
    box-sizing: border-box !important;
    font-family: Arial, sans-serif !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    background-color: transparent !important;
    padding: 20px 0 !important;
}

#custom_contact_container_12345 {
    width: 100% !important;
    max-width: 800px !important;
    padding: 40px !important;
    background-color: #f2f2f2 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

#custom_contact_title_12345 {
    text-align: center !important;
    font-size: 42px !important;
    margin-bottom: 30px !important;
    color: #222 !important;
    font-weight: 700 !important;
    font-family: Arial, sans-serif !important;
}

#custom_contact_form_12345 .custom_form_group_12345 {
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}

#custom_name_input_12345,
#custom_email_input_12345,
#custom_phone_input_12345,
#custom_message_input_12345 {
    width: 100% !important;
    padding: 15px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    font-family: Arial, sans-serif !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: box-shadow 0.2s ease, background-color 0.2s ease !important;
}

#custom_name_input_12345:focus,
#custom_email_input_12345:focus,
#custom_message_input_12345:focus {
    outline: none !important;
    box-shadow: 0 2px 6px rgba(232, 61, 28, 0.15) !important;
    background-color: #f9f9f9 !important;
}

#custom_message_input_12345 {
    resize: vertical !important;
    min-height: 80px !important;
}

#custom_submit_button_12345 {
    display: block !important;
    margin: 0 auto !important;
    background-color: #e83d1c !important;
    color: white !important;
    border: none !important;
    padding: 12px 50px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
    font-family: Arial, sans-serif !important;
}

#custom_submit_button_12345:hover {
    background-color: #d63718 !important;
}

/* Country dropdown and phone input styles */
.custom_form_group_12345 {
    position: relative !important;
    margin-bottom: 20px !important;
}

/* Phone input container */
.phone-input-container {
    display: flex !important;
    background-color: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: box-shadow 0.2s ease !important;
}

.phone-input-container:focus-within {
    box-shadow: 0 2px 6px rgba(232, 61, 28, 0.15) !important;
}

/* Native select styling for better compatibility */
.country-selector {
    min-width: 110px !important;
    height: 50px !important;
    padding: 0 15px !important;
    background-color: #f2f2f2 !important;
    border: none !important;
    border-right: 1px solid #ebebeb !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-family: Arial, sans-serif !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e83d1c' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px !important;
    padding-right: 30px !important;
    color: #333 !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease !important;
}

.country-selector:focus {
    outline: none !important;
    background-color: #e6e6e6 !important;
}

.country-selector:hover {
    background-color: #e6e6e6 !important;
}

/* Styling for the dropdown options */
.country-selector option {
    padding: 15px !important;
    font-size: 16px !important;
    background-color: white !important;
    color: #333 !important;
}

/* Custom styling for dropdown on browsers that support it */
select.country-selector {
    background-color: white !important;
    border-radius: 8px 0 0 8px !important;
}

/* For Webkit browsers (Chrome, Safari) */
select.country-selector::-webkit-scrollbar {
    width: 8px !important;
}

select.country-selector::-webkit-scrollbar-track {
    background: #f2f2f2 !important;
    border-radius: 4px !important;
}

select.country-selector::-webkit-scrollbar-thumb {
    background: #e83d1c !important;
    border-radius: 4px !important;
}

select.country-selector::-webkit-scrollbar-thumb:hover {
    background: #d63718 !important;
}

@supports (-moz-appearance:none) {
    /* Firefox-specific styles */
    select.country-selector {
        scrollbar-width: thin !important;
        scrollbar-color: #e83d1c #f2f2f2 !important;
    }
}

/* This is a workaround for styling select dropdowns in some browsers */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select.country-selector {
        border-radius: 8px 0 0 8px !important;
    }
    
    select.country-selector option:hover,
    select.country-selector option:focus,
    select.country-selector option:active {
        background: linear-gradient(#f9f9f9, #f9f9f9) !important;
        background-color: #f9f9f9 !important;
    }
}

/* When the dropdown and input are side by side */
#custom_phone_input_12345 {
    flex: 1 !important;
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
    padding: 15px !important;
    transition: background-color 0.2s ease !important;
}

#custom_phone_input_12345:focus {
    background-color: #f9f9f9 !important;
    outline: none !important;
}

/* Custom country selector styling */
.country-selector-custom {
    min-width: 110px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #f2f2f2 !important;
    border-right: 1px solid #ebebeb !important;
    border-radius: 8px 0 0 8px !important;
    height: 50px !important;
}

.selected-country-display {
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
    cursor: pointer !important;
    height: 100% !important;
    width: 100% !important;
    justify-content: space-between !important;
}

.country-flag {
    font-size: 26px !important;
    margin-right: 8px !important;
}

.country-dialcode {
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
}

.dropdown-arrow {
    margin-left: 8px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 5px solid #e83d1c !important;
}

/* Country dropdown container */
.country-dropdown-container {
    display: none !important;
    background-color: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    margin-top: 5px !important;
    z-index: 1000 !important;
    width: 250px !important;
}

/* Country options in dropdown */
.country-option {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    border-bottom: 1px solid #f2f2f2 !important;
}

.country-option:last-child {
    border-bottom: none !important;
}

.country-option:hover {
    background-color: #f2f2f2 !important;
}

.country-option .country-flag {
    font-size: 22px !important;
    min-width: 28px !important;
    text-align: center !important;
    margin-right: 10px !important;
}

.country-name {
    flex: 1 !important;
    font-size: 14px !important;
    color: #333 !important;
}

.country-option .country-dialcode {
    color: #666 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    margin-left: 5px !important;
}

/* Scrollbar styling for the dropdown */
.country-dropdown-container::-webkit-scrollbar {
    width: 8px !important;
}

.country-dropdown-container::-webkit-scrollbar-track {
    background: #f2f2f2 !important;
    border-radius: 4px !important;
}

.country-dropdown-container::-webkit-scrollbar-thumb {
    background: #e83d1c !important;
    border-radius: 4px !important;
}

.country-dropdown-container::-webkit-scrollbar-thumb:hover {
    background: #d63718 !important;
}

/* Remove unused flag grid styles */
.flags-grid,
.flag-item,
.flag-item:hover,
.flag-item .country-flag {
    display: none;
}

/* Consent checkbox styles */
.consent-group {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
}

#custom_consent_checkbox_12345 {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    cursor: pointer !important;
    accent-color: #e83d1c !important;
}

.consent-group label {
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    user-select: none !important;
}

.consent-group label:hover {
    color: #e83d1c !important;
}

/* Error state for consent checkbox */
.consent-group.error label {
    color: #e83d1c !important;
}

.consent-group.error #custom_consent_checkbox_12345 {
    border-color: #e83d1c !important;
}

/* Add error message styling */
.error-message {
    color: #e83d1c !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: none !important;
}

.consent-group.error .error-message {
    display: block !important;
}

/* Form feedback messages */
.form-feedback {
    margin-top: 20px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-size: 16px !important;
    animation: fadeIn 0.3s ease-in-out !important;
}

.form-feedback.success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.form-feedback.error {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

@keyframes fadeIn {
    from { opacity: 0 !important; transform: translateY(-10px) !important; }
    to { opacity: 1 !important; transform: translateY(0) !important; }
}

/* Disabled button state */
#custom_submit_button_12345:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
}