
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root{
    --bg:#FFFFFF;
    --text:#757575;
    --placeholder:#757575;
    --btn:#E84D5B;
    --btn-hover:#D63F4C;
    --error:#df1a1a6e;
    --error-bg:#FFF5F5;
}

/* RESET */
.wpcf7,
.wpcf7 form,
.billing-contact-form{
    margin:0 !important;
    padding:0 !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}

.wpcf7 p{
    margin:0 !important;
    padding:0 !important;
}

.wpcf7 br{
    display:none !important;
}

.billing-contact-form,
.billing-contact-form *{
    box-sizing:border-box !important;
    font-family:'Poppins',sans-serif !important;
}

/* =========================
LAYOUT - DESKTOP SAME DESIGN
========================= */

.billing-form-top{
    display:grid !important;
    grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
    margin-bottom:10px !important;
}

.billing-form-bottom{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) 160px !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
    min-height:50px !important;
}

/* =========================
FIELDS
========================= */

.billing-field,
.billing-message,
.billing-submit,
.wpcf7-form-control-wrap{
    width:100% !important;
    max-width:100% !important;
    display:block !important;
}

/* =========================
INPUTS
========================= */

.billing-field input,
.billing-field select{
    width:100% !important;
    max-width:100% !important;
    height:42px !important;
    min-height:42px !important;

    background:var(--bg) !important;
    border:none !important;
    border-radius:8px !important;

    padding:0 14px !important;

    font-size:13px !important;
    font-weight:400 !important;
    line-height:42px !important;
    color:var(--text) !important;

    outline:none !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
}

/* TEXTAREA */
.billing-message textarea{
    width:100% !important;
    max-width:100% !important;
    height:42px !important;
    min-height:42px !important;

    background:var(--bg) !important;
    border:none !important;
    border-radius:8px !important;

    padding:10px 14px !important;

    font-size:13px !important;
    font-weight:400 !important;
    line-height:22px !important;
    color:var(--text) !important;

    resize:none !important;
    overflow:hidden !important;

    outline:none !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
}

/* PLACEHOLDER */
.billing-field input::placeholder,
.billing-message textarea::placeholder{
    color:var(--placeholder) !important;
    opacity:1 !important;
}

/* SELECT ICON */
.billing-field select{
    appearance:none !important;
    -webkit-appearance:none !important;
    -moz-appearance:none !important;
    padding-right:40px !important;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%239AA4B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat:no-repeat !important;
    background-position:right 12px center !important;
}

/* BUTTON */
.billing-submit input[type="submit"]{
    width:100% !important;
    max-width:100% !important;
    height:42px !important;
    min-height:42px !important;

    border:none !important;
    border-radius:999px !important;

    background:var(--btn) !important;
    color:#fff !important;

    font-size:13px !important;
    font-weight:600 !important;
    line-height:42px !important;

    padding:0 18px !important;
    cursor:pointer !important;
    outline:none !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
    margin-top: 1px !important;
}

.billing-submit input[type="submit"]:hover{
    background:var(--btn-hover) !important;
}

/* ERROR FIELD */
.billing-contact-form .wpcf7-not-valid{
    border:1.5px solid var(--error) !important;
    background:var(--error-bg) !important;
}

/* =========================
MESSAGES
========================= */

.billing-custom-error,
.billing-success-msg,
.billing-block-msg{
    display:none;
    margin-top:12px !important;
    padding:10px 14px !important;
    border-radius:10px !important;
    font-size:13px !important;
    line-height:20px !important;
}

.billing-custom-error{
    background:#FEF2F2 !important;
    border:1px solid #FECACA !important;
    color:#DC2626 !important;
}

.billing-success-msg{
    background:#ECFDF5 !important;
    border:1px solid #BBF7D0 !important;
    color:#16A34A !important;
}

.billing-block-msg{
    background:#FFF7ED !important;
    border:1px solid #FED7AA !important;
    color:#C2410C !important;
}

.billing-custom-error.visible,
.billing-success-msg.visible,
.billing-block-msg.visible{
    display:block !important;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width:1024px){
    .billing-form-top{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }

    .billing-form-bottom{
        grid-template-columns:1fr !important;
        min-height:auto !important;
        gap: 5px !important;
    }

    .billing-submit input[type="submit"]{
        max-width:220px !important;
    }
}

@media (max-width:600px){
    .billing-form-top,
    .billing-form-bottom{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:10px !important;
        width:100% !important;
        max-width:100% !important;
    }

    .billing-field,
    .billing-message,
    .billing-submit{
        width:100% !important;
        max-width:100% !important;
    }

    .billing-field input,
    .billing-field select{
        width:100% !important;
        height:46px !important;
        min-height:46px !important;
        line-height:46px !important;
        font-size:13px !important;
        padding:0 14px !important;
    }

    .billing-message textarea{
        width:100% !important;
        height:90px !important;
        min-height:90px !important;
        padding:14px !important;
        font-size:13px !important;
        line-height:21px !important;
        overflow:auto !important;
    }

    .billing-submit input[type="submit"]{
        width:100% !important;
        max-width:100% !important;
        height:46px !important;
        min-height:46px !important;
        line-height:46px !important;
        font-size:14px !important;
    }
}

@media (max-width:380px){
    .billing-field input,
    .billing-field select,
    .billing-message textarea,
    .billing-submit input[type="submit"]{
        font-size:12px !important;
    }
}
