.aef-form {
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    max-width: 500px;
    margin: 20px auto;
    font-family: sans-serif;
    color: #020321;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    border-radius: 8px;
}

.aef-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #020321;
    font-size: 14px;
}
.aef-form .aef-radio-text {
    color: #020321;
    margin-left: 5px;
}
.aef-form .aef-radio-icon {
    color: #020321;
    margin-left: 5px;
}
.aef-form input:-webkit-autofill, 
.aef-form input:-webkit-autofill:hover, 
.aef-form input:-webkit-autofill:focus, 
.aef-form textarea:-webkit-autofill, 
.aef-form textarea:-webkit-autofill:hover, 
.aef-form textarea:-webkit-autofill:focus, 
.aef-form select:-webkit-autofill, 
.aef-form select:-webkit-autofill:hover, 
.aef-form select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}


body .aef-form input[type="text"],
body .aef-form input[type="email"],
body .aef-form input[type="url"],
body .aef-form input[type="tel"],
body .aef-form input[type="file"],
body .aef-form textarea,
body .aef-form select {
    width: 90%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    background-color: #fff;
    color: #020321;
    font-size: 20px;
    border-radius: 0;
    transition: border-color 0.3s, background-color 0.3s;
}
body .aef-form input[type="date"]{
    width: 40%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    background-color: #fff;
    color: #020321;
    font-size: 24px;
    border-radius: 0;
    transition: border-color 0.3s, background-color 0.3s;
}


body .aef-form input[type="text"]:focus,
body .aef-form input[type="email"]:focus,
body .aef-form input[type="url"]:focus,
body .aef-form input[type="tel"]:focus,
body .aef-form input[type="date"]:focus,
body .aef-form input[type="file"]:focus,
body .aef-form textarea:focus,
body .aef-form select:focus {
    background-color: #fff;
    color: #020321;
    outline: none;
    border-bottom-color: #0073aa; 
    box-shadow: 0px 2px 5px rgba(0, 115, 170, 0.2); 
}

body .aef-form input[type="text"]::placeholder,
body .aef-form input[type="email"]::placeholder,
body .aef-form input[type="url"]::placeholder,
body .aef-form input[type="date"]::placeholder,
body .aef-form input[type="tel"]::placeholder,
body .aef-form textarea::placeholder {
    color: #aaa; /* Светлый плейсхолдер */
}
textarea {
    resize: vertical;
    max-height: 300px;
    height: 150px;
}

.aef-field {
    position: relative;
    margin-bottom: 30px;
}

.aef-sticker-area {
    position: absolute;
    right: 10px;
    top: 35px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
    transition: transform 0.3s, opacity 0.3s;
}

.aef-field:focus-within .aef-sticker-area {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
}

/* Группа радио-кнопок */
.aef-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Каждая радио-опция */
.aef-radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: #f9f9f9;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: background 0.3s ease, border-color 0.3s ease;
    position: relative;
}

/* Скрываем стандартный радио-инпут */
.aef-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Изменение фона при наведении */
.aef-radio-option:hover {
    background: #e0e0e0;
}

/* Иконка радио-кнопки */
.aef-radio-icon {
    background-color: #fff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

/* Внутренний круг для выбранного состояния */
.aef-radio-icon::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s ease;
    position: absolute;
}



/* Эффект свечения для выбранной радио-кнопки */
.aef-radio-option input[type="radio"]:checked ~ .aef-radio-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #703CF0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}



/* Изменение стиля текста при выборе */
.aef-radio-option input[type="radio"]:checked ~ .aef-radio-text {
    color: #2f0d78;
   
}

/* Стиль текста радио-кнопки */
.aef-radio-text {
    font-size: 12px;
    color: #020321;
    transition: color 0.3s ease;
}

.aef-form button[type="submit"] {
    display: block; 
    margin: 20px auto;
    background: #703CF0;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.aef-form button[type="submit"]:hover {
    background: #8C5FF2;
    transform: scale(1.05);
}

.aef-form button[type="submit"]:active {
    background: #003f7f;
    transform: scale(0.95);
}


.aef-sticker-area img {
    max-width: 128px;
    max-height: 128px;
}

.aef-tel-intl-field {
    padding-left: 80px !important;
}

.aef-intl-container {
    --aef-intl-tel-button-height: 100%;
}

.aef-intl-container.iti {
    width: 100%;
    color: #0073aa;
}


.aef-intl-container.iti.elementor-error .iti__country-container {
    bottom: 23px;
}

.aef-intl-container .iti__country-container {
    height: var(--aef-intl-tel-button-height);
    color: #0073aa;
}

.aef-intl-container button.iti__selected-country {
    background: transparent !important;
    box-shadow: unset !important;
    color: #0073aa;
}

.aef-intl-container .iti__selected-country-primary:hover {
    background-color: transparent !important;
    color: #0073aa;
}

.aef-form select option {
    color: #0073aa;
}

.aef-form .aef-option-text {
    color: #0073aa;
}

.aef-intl-container .iti__country-name,
.aef-intl-container .iti__dial-code {
    color: #020321; 
    font-weight: normal; 
}

.aef-intl-container .iti__country-list .iti__highlight {
    background-color: #f0f0f0; 
    color: #0073aa;   
}
.aef-icon-telegram {
    background: url('/wp-content/plugins/awesome-extended-forms/public/icons/telegram.svg') no-repeat center center;
    background-size: contain;
    width: 32px;
    height: 32px;
    display: inline-block;
}

.aef-icon-whatsapp {
    background: url('/wp-content/plugins/awesome-extended-forms/public/icons/whatsapp.svg') no-repeat center center;
    background-size: contain;
    width: 32px;
    height: 32px;
    display: inline-block;
}

.aef-icon-viber {
    background: url('/wp-content/plugins/awesome-extended-forms/public/icons/viber.svg') no-repeat center center;
    background-size: contain;
    width: 32px;
    height: 32px;
    display: inline-block;
}

.aef-icon-phone {
    background: url('/wp-content/plugins/awesome-extended-forms/public/icons/phone.svg') no-repeat center center;
    background-size: contain;
    width: 32px;
    height: 32px;
    display: inline-block;
}

.aef-icon-email {
    background: url('/wp-content/plugins/awesome-extended-forms/public/icons/email.svg') no-repeat center center;
    background-size: contain;
    width: 32px;
    height: 32px;
    display: inline-block;
}
.bi-whatsapp {
    color: #25D366;
}

.aef-ios-placeholder-icon {
    cursor: pointer;
}

.aef-ios-placeholder-icon img {
    width: 22px;
    height: 22px;
}
.show-form-btn {
    display: block;
    margin: 15px auto;
    background: #703CF0;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.show-form-btn:hover {
    background-color: #8C5FF2;
    transform: scale(1.05);
}

.show-form-btn:active {
    background-color: #003f7f;
    transform: scale(0.95);
}
/* Успешное сообщение */
.aef-success {
    margin-top: 20px; 
    padding: 15px;
    font-weight: bold;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-sticker {
    width: 128px;
    height: 128px;
    background-image: url('https://trueresort.net/wp-content/uploads/icons/thank-you-128.png');
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.success-message {
    font-size: 16px;
    color: #155724;
    opacity: 0;
    animation: fadeInText 0.5s 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Сообщение об ошибке */
.aef-error {
    margin-top: 20px;
    padding: 15px;
    font-weight: bold;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-sticker {
    width: 128px;
    height: 128px;
    background-image: url('https://trueresort.net/wp-content/uploads/icons/error-128.png'); /* Путь к стикеру */
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.error-message {
    font-size: 16px;
    color: #721c24;
    opacity: 0;
    animation: fadeInText 0.5s 0.5s forwards;
}
