/* Curtain Concept - Contactformulieren frontend styling */
.gx-contact-wrap,
.gx-contact-wrap * {
    box-sizing: border-box;
}

.gx-contact-form {
    width: 100%;
}

.gx-contact-form .gx-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 30px;
    row-gap: 20px;
    align-items: start;
}

.gx-contact-form .gx-field {
    margin: 0 !important;
}

.gx-contact-form .gx-field-name {
    grid-column: 1;
    grid-row: 1;
}

.gx-contact-form .gx-field-phone {
    grid-column: 1;
    grid-row: 2;
}

.gx-contact-form .gx-field-email {
    grid-column: 1;
    grid-row: 3;
}

.gx-contact-form .gx-field-message {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.gx-contact-form label {
    display: block;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.25;
}

.gx-contact-form label span {
    color: #e6007e;
}

.gx-contact-form input[type="text"],
.gx-contact-form input[type="email"],
.gx-contact-form input[type="tel"],
.gx-contact-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #222222 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none;
}

.gx-contact-form input[type="text"],
.gx-contact-form input[type="email"],
.gx-contact-form input[type="tel"] {
    height: 42px !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
}

/* Hoogte afgestemd op drie velden links inclusief tussenruimte. */
.gx-contact-form .gx-field-message textarea {
    height: 236px !important;
    min-height: 236px !important;
    padding: 10px 12px !important;
    resize: vertical;
}

.gx-contact-form input:focus,
.gx-contact-form textarea:focus {
    border-color: #e6007e !important;
    box-shadow: 0 0 0 1px rgba(230, 0, 126, 0.18) !important;
}

.gx-contact-form .gx-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.gx-contact-form .gx-contact-submit {
    background:#ffffff !important;
    color:#2b0033 !important;
    border:1px solid #ffffff !important;

    margin-top: 20px !important;
    border-radius: 6px !important;
    height: 42px !important;
    min-height: 42px !important;
    line-height: 20px !important;
    padding: 9px 26px !important;
    cursor: pointer;
}

.gx-contact-form .gx-contact-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.gx-contact-message {
    margin: 0 0 20px 0;
    padding: 12px 16px;
    border-radius: 6px;
}

.gx-contact-message.gx-error {
    border: 1px solid #cc1818;
    background: #fff5f5;
    color: #8a0000;
}

.gx-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gx-contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.gx-contact-modal-card {
    position: relative;
    width: min(460px, 100%);
    background: #ffffff;
    color: #222222;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
    padding: 34px 30px 28px;
    text-align: center;
    animation: gxContactFadeIn .18s ease-out;
}

.gx-contact-modal-hidden {
    display: none !important;
}

.gx-contact-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.gx-contact-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
}

.gx-contact-modal-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.gx-contact-modal-card p {
    margin: 0 0 22px;
}

.gx-contact-modal-button {
    border: 0;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .gx-contact-form .gx-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gx-contact-form .gx-field-name,
    .gx-contact-form .gx-field-phone,
    .gx-contact-form .gx-field-email,
    .gx-contact-form .gx-field-message {
        grid-column: 1;
    }

    .gx-contact-form .gx-field-name { grid-row: 1 !important; }
    .gx-contact-form .gx-field-message { grid-row: 2 !important; }
    .gx-contact-form .gx-field-phone { grid-row: 3 !important; }
    .gx-contact-form .gx-field-email { grid-row: 4 !important; }

    .gx-contact-form .gx-field-message textarea {
        height: 180px !important;
        min-height: 180px !important;
    }
}


/* v0.3.9 - berichtveld gelijk getrokken met drie velden links */
.gx-contact-form .gx-field-message textarea#gx_message {
    height: 236px !important;
    min-height: 236px !important;
    max-height: none !important;
}
.gx-contact-form button.gx-contact-submit,
.gx-contact-form input[type=submit].gx-contact-submit,
button.gx-contact-submit {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #2b0033 !important;
    border: 1px solid #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border-radius: 6px !important;
    height: 42px !important;
    min-height: 42px !important;
    line-height: 20px !important;
    padding: 9px 26px !important;
}
.gx-contact-form button.gx-contact-submit:hover,
.gx-contact-form button.gx-contact-submit:focus,
button.gx-contact-submit:hover,
button.gx-contact-submit:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #2b0033 !important;
    border-color: #ffffff !important;
}


/* v0.3.10 - berichtveld exact iets hoger + mobiele volgorde: naam, bericht, telefoon, e-mail */
.gx-contact-form .gx-field-message textarea#gx_message {
    height: 236px !important;
    min-height: 236px !important;
}
@media (max-width: 768px) {
    .gx-contact-form .gx-field-name { grid-row: 1 !important; }
    .gx-contact-form .gx-field-message { grid-row: 2 !important; }
    .gx-contact-form .gx-field-phone { grid-row: 3 !important; }
    .gx-contact-form .gx-field-email { grid-row: 4 !important; }
    .gx-contact-form .gx-field-message textarea#gx_message {
        height: 180px !important;
        min-height: 180px !important;
    }
}
