/* =========================================
   REQUEST A CALLBACK
   ========================================= */

.callback-wrapper {
    width: 95%;
    position: relative;
    align-content: center;
    align-items: center;
    align-self: center;
    justify-content: center;
    z-index: 1000;
    background-color: white; 
    margin-left: 2rem; 
    margin-right: 2rem; 
    padding-top: 2rem; 
    padding-bottom:2rem;
    padding-left : 20%;
    border-radius: 20px; 
}

/* Callback button */

.callback-button {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;

    border: none;
    border-radius: 5px;

    background: #b08a4a;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.callback-button:hover {
    background: #967238;
    transform: translateY(-1px);
}

.callback-button:focus-visible {
    outline: 3px solid rgba(176, 138, 74, 0.35);
    outline-offset: 3px;
}


/* =========================================
   CALLBACK PANEL
   ========================================= */

.callback-panel {
    width: 100%;

    max-height: 0;
    overflow: hidden;

    opacity: 0;

    background: #ffffff;

    border: 0 solid #e5e5e5;

    box-sizing: border-box;

    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        padding 0.45s ease,
        border-width 0.45s ease;
}

.callback-panel.is-open {
    max-height: 1000px;
    opacity: 1;

    border-width: 1px;

    margin-top: 15px;
}


/* Inner content */

.callback-inner {
    position: relative;

    width: 100%;
    max-width: 700px;

    margin: 0 auto;
    padding: 30px;

    box-sizing: border-box;
}


/* Close button */

.callback-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #f3f3f3;
    color: #333333;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition: background 0.2s ease;
}

.callback-close:hover {
    background: #e5e5e5;
}


/* Heading */

.callback-inner h2 {
    margin: 0 45px 8px 0;

    color: #222222;

    font-size: 28px;
    line-height: 1.25;
}

.callback-intro {
    margin: 0 0 25px;

    color: #666666;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================
   FORM
   ========================================= */

.callback-field {
    margin-bottom: 18px;
}

.callback-field label {
    display: block;

    margin-bottom: 7px;

    color: #333333;

    font-size: 14px;
    font-weight: 600;
}

.callback-field label span {
    color: #d22;
}


.callback-field input,
.callback-field textarea {
    display: block;

    width: 100%;

    padding: 12px 14px;

    box-sizing: border-box;

    border: 1px solid #d6d6d6;
    border-radius: 4px;

    background: #ffffff;
    color: #222222;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.callback-field input {
    height: 48px;
}

.callback-field textarea {
    min-height: 110px;

    resize: vertical;
}

.callback-field input:focus,
.callback-field textarea:focus {
    border-color: #b08a4a;

    box-shadow:
        0 0 0 3px rgba(176, 138, 74, 0.12);
}


/* Invalid fields */

.callback-field input.input-error,
.callback-field textarea.input-error {
    border-color: #d93025;
}

.field-error {
    display: block;

    min-height: 18px;

    margin-top: 5px;

    color: #d93025;

    font-size: 13px;
}


/* =========================================
   RESPONSE MESSAGE
   ========================================= */

.callback-response {
    display: none;

    margin-bottom: 18px;

    padding: 12px 15px;

    border-radius: 4px;

    font-size: 14px;
    line-height: 1.5;
}

.callback-response.success {
    display: block;

    background: #eaf7ed;
    border: 1px solid #b9dfc0;

    color: #216e2e;
}

.callback-response.error {
    display: block;

    background: #fff0f0;
    border: 1px solid #f1bcbc;

    color: #b42318;
}


/* =========================================
   SUBMIT BUTTON
   ========================================= */

.callback-submit {
    width: 100%;

    min-height: 48px;

    padding: 12px 20px;

    border: none;
    border-radius: 4px;

    background: #b08a4a;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.callback-submit:hover:not(:disabled) {
    background: #967238;
}

.callback-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.submit-loading {
    display: none;
}

.callback-submit.is-loading .submit-text {
    display: none;
}

.callback-submit.is-loading .submit-loading {
    display: inline;
}


/* =========================================
   HONEYPOT
   ========================================= */

.callback-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip: rect(1px, 1px, 1px, 1px) !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .callback-inner {
        padding: 25px 18px;
    }

    .callback-inner h2 {
        font-size: 24px;
    }

    .callback-button {
        width: 100%;
    }

}
