


#afj3g-contact-form {
    margin-top: 1rem;
    margin-bottom: 1rem;
}


.afj3g-contact-form {
    max-width: 100%;
    margin-left:0;
    padding: 20px;
}


.afj3g-contact-form__field {
    margin-bottom: 20px;
}

.afj3g-contact-form__field--name,
.afj3g-contact-form__field--email,
.afj3g-contact-form__field--phone,
.afj3g-contact-form__field--message {
    
}


.afj3g-contact-form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.afj3g-contact-form__required {
    color: #d63638;
}


.afj3g-contact-form__input,
.afj3g-contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 20px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.afj3g-contact-form__input:focus,
.afj3g-contact-form__textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.afj3g-contact-form__input::placeholder,
.afj3g-contact-form__textarea::placeholder {
    color: #999;
}


.afj3g-contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}



.afj3g-contact-form__control {
    position: relative;
    display: block;
}

.afj3g-contact-form__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: block;
    
    color: var(--afj3g-forms-icon-color, #9aa0a6);
    transition: color 0.3s ease;
    
    pointer-events: none;
}

.afj3g-contact-form__icon .afj3g-forms-icon {
    width: 100%;
    height: 100%;
    display: block;
}


.afj3g-contact-form__control--textarea .afj3g-contact-form__icon {
    top: 16px;
    transform: none;
}


.afj3g-contact-form__input--has-icon,
.afj3g-contact-form__textarea--has-icon {
    padding-left: 47px;
}


.afj3g-contact-form__control--has-icon:focus-within .afj3g-contact-form__icon {
    color: var(--afj3g-forms-icon-focus-color, #0073aa);
}


@media (prefers-reduced-motion: reduce) {
    .afj3g-contact-form__icon {
        transition: none;
    }
}


.afj3g-contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


.afj3g-contact-form__submit {
    margin-top: 24px;
}

.afj3g-contact-form__button {
    background-color: #0073aa;
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: inline-block;
}

.afj3g-contact-form__button:hover {
    background-color: #005a87;
}

.afj3g-contact-form__button:active {
    transform: translateY(1px);
}

.afj3g-contact-form__button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


.afj3g-contact-form__message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 4px;
    font-size: 15px;
}

.afj3g-contact-form__message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.afj3g-contact-form__message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.afj3g-contact-form.loading .afj3g-contact-form__button {
    position: relative;
    color: transparent;
}

.afj3g-contact-form.loading .afj3g-contact-form__button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: afj3g-form-spin 0.6s linear infinite;
}

@keyframes afj3g-form-spin {
    to { transform: rotate(360deg); }
}


.afj3g-contact-form__row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.afj3g-contact-form__field--half {
    flex: 1;
    margin-bottom: 0;
}


.afj3g-contact-form__spacer {
    flex: 1;
}


.afj3g-contact-form__field--privacy {
    margin-top: 10px;
    margin-bottom: 20px;
}

.afj3g-contact-form__privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.afj3g-contact-form__checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.afj3g-contact-form__privacy-text {
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
}

.afj3g-contact-form__privacy-text a {
    color: #0073aa;
    text-decoration: underline;
}

.afj3g-contact-form__privacy-text a:hover {
    color: #005a87;
}


.afj3g-contact-form--no-labels .afj3g-contact-form__label {
    display: none;
}


@media (max-width: 768px) {
    .afj3g-contact-form {
        padding: 15px;
    }
.afj3g-contact-form__row{margin-bottom:0px;}
    .afj3g-contact-form__input,
    .afj3g-contact-form__textarea {
        font-size: 18px; 
    }

    
    .afj3g-contact-form__row {
        flex-direction: column;
        gap: 0;
    }

    .afj3g-contact-form__field--half {
        margin-bottom: 20px;
    }

    
    .afj3g-contact-form__spacer {
        display: none;
    }
}
