/* Modal Overlay */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.contact-modal__content {
    background-color: #fff;
    width: 900px;
    max-width: 90%;
    height: 550px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.contact-modal.is-open .contact-modal__content {
    transform: scale(1);
}

/* Close Button */
.contact-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #999;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.contact-modal__close:hover {
    color: #333;
}

/* Left Side: Image */
.contact-modal__image {
    width: 45%;
    background-size: cover;
    background-position: center;
    position: relative;
    /* Image will be set inline or via specific class */
}

/* Overlay on image for text contrast (optional, consistent with site) */
.contact-modal__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0); /* Adjust if needed */
}

.contact-modal__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 2;
}

/* Right Side: Form */
.contact-modal__form-container {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.contact-modal__title {
    font-family: 'FactorA', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 10px;
}

.contact-modal__subtitle {
    font-family: 'FactorA', sans-serif;
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
}

.contact-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-modal__input-group {
    position: relative;
}

.contact-modal__input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'FactorA', sans-serif;
    font-size: 16px;
    color: #333;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.contact-modal__input:focus {
    border-bottom-color: #0f2b24;
}

.contact-modal__input::placeholder {
    color: #a0a0a0;
}

/* Floating Label Logic */
.contact-modal__input:focus ~ .contact-modal__input-label,
.contact-modal__input:not(:placeholder-shown) ~ .contact-modal__input-label {
    top: -20px;
    font-size: 12px;
    color: #0f2b24;
}

.contact-modal__input-label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #a0a0a0;
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Prefix styling for phone */
.contact-modal__prefix {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #333;
    pointer-events: none;
    display: none; /* Show when active or always if preferred */
}

/* Submit Button */
.contact-modal__submit {
    background-color: #0f2b24; /* Dark green from site */
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-family: 'FactorA', sans-serif;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
    text-align: center;
}

.contact-modal__submit:hover {
    background-color: #1a3d34;
}

/* Success Message Styles */
.contact-modal__success {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fff;
    /* To overlay form if needed, but since we toggle display, simple flex item is fine */
}

.contact-modal__success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e8f5e9;
    color: #4caf50;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.contact-modal__success-icon svg {
    width: 32px;
    height: 32px;
}

.contact-modal__success-btn {
    margin-top: 20px;
    background-color: #f5f5f5;
    color: #333;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'FactorA', sans-serif;
}

.contact-modal__success-btn:hover {
    background-color: #e0e0e0;
}

/* Disclaimer */
.contact-modal__disclaimer {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal__content {
        flex-direction: column;
        height: auto;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .contact-modal__image {
        width: 100%;
        height: 150px;
        display: none; /* Often better to hide image on small mobile modal */
    }

    .contact-modal__form-container,
    .contact-modal__success {
        width: auto;
        padding: 30px 20px;
    }
}
