/* Form Label Styling */
body:not(.page-template-page-quiz) .wpcf7 p {
    margin-bottom: 0;
}

body.page-template-page-quiz span.wpcf7-list-item-label {
    font-size: 1rem;
}

body.page-template-page-quiz .wpcf7-list-item {
    margin-left: 0;
}

/* body.page-template-page-quiz input[type='radio'] {
    accent-color: #F4A5B2 !important;
} */

/* === CF7 Custom Radio Button Styles - Scoped to .page-template-page-quiz === */

body.page-template-page-quiz .wpcf7 form .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 767px){
    body.page-template-page-quiz .wpcf7 form .wpcf7-radio {
        flex-direction: column;
        align-content: center;
        gap: unset;
    }
}
  
body.page-template-page-quiz .wpcf7 form .wpcf7-radio label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 2px solid #383131; /* gray-300 */
    transition: all 0.2s ease-in-out;
    background-color: white;
    margin-top: 1rem;
}

body.page-template-page-quiz .wpcf7 form .wpcf7-radio input[type="radio"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #383131; /* gray-500 */
    border-radius: 50%;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    background-color: white;
    transition: all 0.2s;
}

body.page-template-page-quiz .wpcf7 form .wpcf7-radio input[type="radio"]:checked {
    border-color: #F4A5B2; /* blue-600 */
    background-color: #F4A5B2;
}

body.page-template-page-quiz .wpcf7 form .wpcf7-radio input[type="radio"]:checked::before {
    content: "";
    display: block;
    width: 0.35rem;
    height: 0.35rem;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

body.page-template-page-quiz .wpcf7 form .wpcf7-radio label:hover {
    border-color: #F4A5B2;
    /* background-color: #F4A5B2; */
}

body.page-template-page-quiz .wpcf7 form input[type="email"], 
body.page-template-page-quiz .wpcf7 form input[type="text"] {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #383131;
    background-color: white;
    border: 2px solid #383131; /* gray-300 */
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    margin-top: 1rem;
    outline: none;
    box-sizing: border-box;
}

body.page-template-page-quiz .wpcf7 form input[type="email"]:focus {
    border-color: #F4A5B2;
    box-shadow: 0 0 0 3px rgba(244, 165, 178, 0.3);
}

body.page-template-page-quiz .wpcf7 form input[type="text"]::placeholder,
body.page-template-page-quiz .wpcf7 form input[type="email"]::placeholder {
    color: #a0a0a0;
    font-weight: 400;
}

.wpcf7 label {
    display: block;
    font-size: 0.875rem;
    line-height: 1;
    color: #3B3C3B; /* Gray-700 */
}

.wpcf7 label br {
    display: none;
}

/* Input Fields */
.bg-\[\#0F0F0F\] .wpcf7 input[type="text"],
.bg-\[\#0F0F0F\] .wpcf7 input[type="email"] {
    border-bottom: 1px solid white;
}

.bg-\[\#F2F2F2\] .wpcf7 input[type="text"],
.bg-\[\#F2F2F2\] .wpcf7 input[type="email"] {
    border-bottom: 1px solid #1F2122;
}

.wpcf7 input {
    outline: none;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
    background: transparent;
    text-transform: uppercase;
    color: white;
}

.wpcf7 input[type="submit"] {
    cursor: pointer;
    margin-bottom: 0;
}

/* Error Handling */
.wpcf7-not-valid-tip {
    margin-top: 1rem;
    color: #F3A4B1;
}

/* Input Field Placeholder */
.bg-\[\#0F0F0F\] .wpcf7 input::placeholder {
    color: white;
}

.bg-\[\#F2F2F2\] .wpcf7 input::placeholder {
    color: #1F2122;
}

/* .wpcf7 div.w-full input[type="submit"] {
    background-color: #C0A676;
    border-radius: 9999px;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    border: 2px solid #C0A676;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none;
} */

/* Submit Button Focus and Hover Effects */
.wpcf7 div.w-full:not(:last-of-type) {
    width: calc(40% - 16px) !important;
}

.wpcf7 div.w-full:last-of-type {
    width: calc(20% - 16px) !important;
}

@media (max-width: 767px) {

    .wpcf7 input {
        font-size: 0.75rem !important;
    }

    .wpcf7 div.w-full:last-of-type {
        margin-top: 10px;
    }

    .wpcf7 div.w-full:not(:last-of-type),
    .wpcf7 div.w-full:last-of-type {
        width: 100% !important;
    }
}

.wpcf7 div.w-full:hover,
.wpcf7 div.w-full:focus-visible {
    background-color: transparent;
    border-color: #C0A676;
    color: #C0A676;
}

.wpcf7 div.w-full:focus-visible {
    outline: 2px solid #4F46E5; /* Indigo-500 for focus ring */
}

.wpcf7-spinner {
    display: none;
}

/* Hide default select arrow in Webkit (Chrome, Safari, Edge) */
select {
    -webkit-appearance: none; /* Remove default styling */
    -moz-appearance: none;
    appearance: none;
    padding-right: 2rem; /* Adjust padding for custom dropdown icon */
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px #1F2122 solid;
}

/* Hide default dropdown arrow in IE 11 */
select::-ms-expand {
    display: none;
}

/* Add a custom dropdown arrow */
.select-container {
    position: relative;
    display: inline-block;
}

.wpcf7-form-control-wrap select,
.select-container select {
    width: 100%;
    cursor: pointer;
    background: transparent;
}

/* Custom dropdown arrow */
.select-container::after {
    content: "\f078"; /* Font Awesome Unicode for fa-chevron-down */
    font-family: "Font Awesome 5 Free"; /* Ensure correct Font Awesome version */
    font-weight: 900; /* Required for solid icons */
    font-size: 14px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none; /* Prevent interaction */
    color: inherit;
}