/*
Theme Name: SPIA AVADA CHILD
Description: SPIA CHILD
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* Contact Form 7 Custom Styling to Override Avada Theme */
.wpcf7-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* General input fields (text, email, textarea, etc.) */
.wpcf7-form .wpcf7-form-control.wpcf7-text,
.wpcf7-form .wpcf7-form-control.wpcf7-textarea,
.wpcf7-form .wpcf7-form-control.wpcf7-select {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: #fff;
    font-size: 16px;
    color: #333;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form button {
    padding: 20px 15px !important; /* Adjust values as needed */
    width: 100%; /* Example: make inputs full width */
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width */
}

span.wpcf7-form-control-wrap {
    position: relative !important;
}


/* Contact Form 7 select box styling */
.wpcf7-form select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 16px !important;
    color: #000 !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    padding: 0 !important;
    width: 100%;
    max-width: 400px;
    height: 40px;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

.wpcf7-form select option {
    color: #000 !important;
    background: #fff !important;
}

.wpcf7-form select:focus {
    outline: 2px solid #0073aa !important;
}
/* Radio buttons */
.wpcf7-form .wpcf7-form-control.wpcf7-radio {
    width: 100%;
    margin-bottom: 15px;
}

.wpcf7-form .wpcf7-radio .wpcf7-list-item {
    display: block;
    margin-bottom: 10px;
}

.wpcf7-form .wpcf7-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
}

.wpcf7-form .wpcf7-radio input[type="radio"]:checked::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: #0073aa;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* All form buttons (submit, reset, button, etc.) */
.wpcf7-form .wpcf7-form-control.wpcf7-submit,
.wpcf7-form input[type="button"],
.wpcf7-form button {
    width: 100%;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form .wpcf7-form-control.wpcf7-submit:hover,
.wpcf7-form input[type="button"]:hover,
.wpcf7-form button:hover {
    background: #005b8c;
}

/* Override Avada theme's form styling */
.wpcf7-form .wpcf7-form-control,
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select,
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="button"],
.wpcf7-form button {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Custom styles for select elements */
select {
  background-color: #f0f0f0; /* default background */
  color: #333; /* default text color */
}

select:focus {
  background-color: #d0eaff; /* background when focused */
  color: #000;
}

option {
  background-color: #fff; /* option background */
  color: #333;
}


