/* getintouch Popup Styles */

.getintouch-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.getintouch-popup._active {
    display: flex;
}

/* Overlay */
.getintouch-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 37, 39, 0.65);
    backdrop-filter: blur(2px);
}

/* Popup Container */
.getintouch-popup__container {
    position: relative;
    background: url('/wp-content/themes/islamichelp/assets/images/popup-base.png') no-repeat center center / cover;
    border-radius: 24px;
    max-width: 486px;
    width: 90%;
    max-height: 90vh;
    padding: 3rem 2.5rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    overflow-y: auto;
}

@media (max-width: 767px) {
    .getintouch-popup__container {
        padding: 2.5rem 1.5rem 2rem;
        border-radius: 20px;
        width: 95%;
    }
}

/* Close Button */
.getintouch-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #012527;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    transition: all 0.2s ease;
}

.getintouch-popup__close:hover {
    background-color: #f5f5f5;
    transform: scale(1.05);
}

/* Icon */
.getintouch-popup__icon {
    display: flex;
    justify-content: center;
    margin: 40px 0 32px;
}

/* Content */
.getintouch-popup__content {
    text-align: center;
    max-width: 294px;
    margin: 0 auto;
}

/* Title */
.getintouch-popup__title {
    font-family: "Antonio", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25;
    text-transform: uppercase;
    text-align: center;
    color: #012527;
    margin-bottom: 32px;
}

/* Text */
.getintouch-popup__text {
    font-family: "Karla", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 2;
    text-align: center;
    color: #011b1c;
    margin-bottom: 32px;
}

@media (max-width: 767px) {
    .getintouch-popup__text {
        font-size: 15px;
        margin-bottom: 1.75rem;
    }
}

/* Form Container */
.getintouch-popup__form {
    margin-top: 2rem;
}

.getintouch-popup__form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* CF7 Input Fields */
.getintouch-popup__form input[type="email"],
.getintouch-popup__form input[type="text"],
.getintouch-popup__form textarea {
    width: 100%;
    border: 1px solid #002527;
    border-radius: 8px;
    padding: 14px 16px;
    background-color: #ffffff;
    font-family: "Karla", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    color: #5f6d6e;
    transition: border-color 0.2s ease;
}

.getintouch-popup__form input[type="email"]:focus,
.getintouch-popup__form input[type="text"]:focus,
.getintouch-popup__form textarea:focus {
    outline: none;
    border-color: #004C51;
}

.getintouch-popup__form input[type="email"]::placeholder,
.getintouch-popup__form input[type="text"]::placeholder,
.getintouch-popup__form textarea::placeholder {
    color: #979797;
}

.getintouch-popup__form textarea {
    height: 100px;
    resize: vertical;
}

.getintouch-popup__form p {
    line-height: 0;
    margin: 0;
    position: relative;
}

.getintouch-popup__form .wpcf7-spinner {
    position: absolute;
    top: 12px;
    right: 0;
}

/* CF7 Submit Button */
.getintouch-popup__form input[type="submit"],
.getintouch-popup__form .wpcf7-submit {
    width: 100%;
    padding: 16px;
    background: #deca3c;
    border-radius: 100px;
    font-family: "Work Sans", sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    color: #012527;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.getintouch-popup__form input[type="submit"]:hover,
.getintouch-popup__form .wpcf7-submit:hover {
    background-color: #012527;
    color: #FFFFFF;
}

/* CF7 Validation Messages */
.getintouch-popup__form .wpcf7-not-valid-tip {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 1rem;
    text-align: left;
}

.getintouch-popup__form .wpcf7-response-output {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.getintouch-popup__form .wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.getintouch-popup__form .wpcf7-validation-errors,
.getintouch-popup__form .wpcf7-mail-sent-ng {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Prevent body scroll when popup is open */
body._popup-open {
    overflow: hidden;
}
