﻿/* Contact form design */
.contact__form-wrap {
    width: 100%;
}

    .contact__form-wrap .title {
        margin-bottom: 10px;
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
    }

    .contact__form-wrap .form-description {
        margin-bottom: 30px;
        color: #777;
        font-size: 14px;
    }

    .contact__form-wrap .contact-field {
        margin-bottom: 20px;
    }

    .contact__form-wrap input[type="text"],
    .contact__form-wrap input[type="email"],
    .contact__form-wrap input[type="number"],
    .contact__form-wrap textarea {
        width: 100%;
        border: 1px solid #e5e5e5;
        background: #fff;
        padding: 15px 18px;
        outline: none;
        border-radius: 0;
        font-size: 15px;
        color: #222;
        transition: all .3s ease;
    }

    .contact__form-wrap textarea {
        min-height: 180px;
        resize: vertical;
    }

        .contact__form-wrap input:focus,
        .contact__form-wrap textarea:focus {
            border-color: #222;
        }

        .contact__form-wrap input::placeholder,
        .contact__form-wrap textarea::placeholder {
            color: #999;
        }

    /* Checkbox */
    .contact__form-wrap .checkbox-grp {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-top: 5px;
        margin-bottom: 25px;
    }

        .contact__form-wrap .checkbox-grp input {
            width: 16px;
            height: 16px;
            margin-top: 3px;
            flex: 0 0 16px;
        }

        .contact__form-wrap .checkbox-grp label {
            margin: 0;
            font-size: 14px;
            line-height: 1.5;
            color: #777;
            cursor: pointer;
        }

    /* Submit button */
    .contact__form-wrap #btn_contact {
        border: 0;
        background: #111;
        color: #fff;
        padding: 14px 32px;
        min-width: 150px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all .3s ease;
    }

        .contact__form-wrap #btn_contact:hover {
            background: #333;
            color: #fff;
        }

    /* CAPTCHA */
    .contact__form-wrap .submit__control {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 5px 0 20px;
    }

    .contact__form-wrap .submit__generated {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 15px;
    }

    .contact__form-wrap .submit__input {
        width: 50px !important;
        padding: 8px !important;
        text-align: center;
    }

    /* Hide subject because it is no longer visually required */
    .contact__form-wrap input[name="subject"] {
        display: none;
    }

/* Responsive */
@media (max-width: 767px) {

    .contact__form-wrap .title {
        font-size: 26px;
    }

    .contact__form-wrap textarea {
        min-height: 140px;
    }

    .contact__form-wrap #btn_contact {
        width: 100%;
    }
}
/* =========================================
   FORM OVERLAY BASE
========================================= */

.contact-form-wrap .form-overlay {
    position: absolute;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
}

    /* Show overlay when JS adds display/flex/class */
    .contact-form-wrap .form-overlay.active,
    .contact-form-wrap .form-overlay.show {
        display: flex;
    }


/* =========================================
   POPUP
========================================= */

.contact-form-wrap .form-popup {
    width: 100%;
    max-width: 430px;
    padding: 35px 30px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
}

    .contact-form-wrap .form-popup h5 {
        margin: 15px 0 8px;
        font-size: 21px;
        font-weight: 700;
        color: #222;
    }

    .contact-form-wrap .form-popup p {
        margin: 0;
        color: #777;
        font-size: 14px;
        line-height: 1.6;
    }


    /* =========================================
   ICON
========================================= */

    .contact-form-wrap .form-popup .icon {
        width: 65px;
        height: 65px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 30px;
        font-weight: 700;
    }


/* SUCCESS ICON */

.contact-form-wrap .success-icon {
    color: #fff;
    background: #22c55e;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}


/* ERROR ICON */

.contact-form-wrap .error-icon {
    color: #fff;
    background: #ef4444;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25);
}


/* =========================================
   SUCCESS MESSAGE
========================================= */

.contact-form-wrap #resmsg {
    background: rgba(255, 255, 255, 0.97);
}

    .contact-form-wrap #resmsg .form-popup {
        border-top: 4px solid #22c55e;
    }

    .contact-form-wrap #resmsg h5 {
        color: #15803d;
    }


/* =========================================
   ERROR MESSAGE
========================================= */

.contact-form-wrap #errormsg {
    background: rgba(255, 255, 255, 0.97);
}

    .contact-form-wrap #errormsg .form-popup {
        border-top: 4px solid #ef4444;
    }

    .contact-form-wrap #errormsg h5 {
        color: #dc2626;
    }


/* =========================================
   LOADER
========================================= */

.contact-form-wrap #loaderbg {
    background: rgba(255, 255, 255, 0.97);
}

    .contact-form-wrap #loaderbg .form-popup {
        border-top: 4px solid #222;
    }


/* Spinner */

.contact-form-wrap .spinner {
    width: 45px;
    height: 45px;
    margin: 0 auto 15px;
    border: 4px solid #e5e5e5;
    border-top-color: #222;
    border-radius: 50%;
    animation: contactSpinner 0.8s linear infinite;
}

@keyframes contactSpinner {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================
   ANIMATION
========================================= */

.contact-form-wrap .form-overlay.active .form-popup,
.contact-form-wrap .form-overlay.show .form-popup {
    animation: contactPopupIn 0.3s ease forwards;
}

@keyframes contactPopupIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .contact-form-wrap .form-overlay {
        padding: 20px;
    }

    .contact-form-wrap .form-popup {
        padding: 30px 20px;
    }

        .contact-form-wrap .form-popup h5 {
            font-size: 18px;
        }

        .contact-form-wrap .form-popup .icon {
            width: 55px;
            height: 55px;
            font-size: 25px;
        }
}
