/*
 * WQCF - Lightweight Consultation Form
 * Version 7.7
 */

/* ==========================================
   CONSULTATION BOX
========================================== */

.wqcf-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3E98A0 0%, #4FADB4 45%, #72CDD2 100%);
    border-radius: 20px;
    padding: 24px 30px;
    margin: 45px 0;
    color: #fff;
    box-shadow: 0 18px 40px rgba(79, 173, 180, .22);
    direction: rtl;
}

.wqcf-box::before,
.wqcf-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.wqcf-box::before {
    width: 260px;
    height: 260px;
    top: -140px;
    left: -120px;
    background: rgba(255, 255, 255, .06);
}

.wqcf-box::after {
    width: 220px;
    height: 220px;
    bottom: -120px;
    right: -100px;
    background: rgba(255, 255, 255, .05);
}

.wqcf-box > * {
    position: relative;
    z-index: 2;
}

/* ==========================================
   TITLE
========================================== */

.wqcf-box h3 {
    margin: 0 0 10px;
    color: #fff;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.4;
}

/* ==========================================
   DESCRIPTION
========================================== */

.wqcf-box > p {
    max-width: 820px;
    margin: 0 auto 20px;
    text-align: center;
    color: rgba(255, 255, 255, .95);
    font-size: 16px;
    line-height: 1.9;
}

/* ==========================================
   FORM GRID - DESKTOP
========================================== */

.wqcf-box .wqcf-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    width: 100%;
    padding: 0;
    margin: 0;
    direction: rtl;
    align-items: start;
}

/* Row 1 */

.wqcf-box .wqcf-form > .wqcf-label:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
}

.wqcf-box .wqcf-form > .wqcf-label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Row 2 */

.wqcf-box .wqcf-form > .wqcf-specialty {
    grid-column: 1;
    grid-row: 2;
}

.wqcf-box .wqcf-form > .wqcf-province {
    grid-column: 2;
    grid-row: 2;
}

/* ==========================================
   LABELS
========================================== */

.wqcf-box .wqcf-label {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    text-align: right;
}

.wqcf-box .wqcf-label > span {
    display: inline;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    margin-right: 3px;
    vertical-align: baseline;
}

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

.wqcf-box .wqcf-form input[type="text"],
.wqcf-box .wqcf-form input[type="tel"] {
    display: block;
    width: 100% !important;
    height: 56px !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 10px 0 0 !important;
    padding: 12px 18px !important;
    background: #fff !important;
    color: #333 !important;
    -webkit-text-fill-color: #333;
    border: none !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: normal;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    transition: box-shadow .25s ease;
    outline: none;
}

.wqcf-box .wqcf-form input[type="text"]:focus,
.wqcf-box .wqcf-form input[type="tel"]:focus {
    background: #fff !important;
    color: #222 !important;
    -webkit-text-fill-color: #222;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

.wqcf-box .wqcf-form input[name="mobile"] {
    direction: ltr;
    text-align: right;
}

/* ==========================================
   SELECTS
========================================== */

.wqcf-box .wqcf-form select[name="specialty"],
.wqcf-box .wqcf-form select[name="province"] {
    display: block;
    width: 100% !important;
    height: 56px !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 10px 0 0 !important;
    padding: 10px 18px !important;
    padding-left: 42px !important;
    background-color: #fff !important;
    color: #333 !important;
    -webkit-text-fill-color: #333;
    border: none !important;
    border-radius: 12px !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    direction: rtl;
    text-align: right;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    transition: box-shadow .25s ease;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #666 50%),
        linear-gradient(135deg, #666 50%, transparent 50%);
    background-position:
        calc(18px) calc(50% - 3px),
        calc(24px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.wqcf-box .wqcf-form select[name="specialty"]:focus,
.wqcf-box .wqcf-form select[name="province"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}

.wqcf-box .wqcf-form select[name="specialty"]:invalid,
.wqcf-box .wqcf-form select[name="province"]:invalid {
    color: #777 !important;
    -webkit-text-fill-color: #777;
}

.wqcf-box .wqcf-form select[name="specialty"] option,
.wqcf-box .wqcf-form select[name="province"] option {
    color: #333;
    background: #fff;
}

/* ==========================================
   SUBMIT BUTTON
========================================== */

.wqcf-box .wqcf-form button[type="submit"] {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    align-self: start;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 420px;
    min-width: 0;
    height: 56px !important;

    margin: 6px 0 0 !important;
    padding: 0 20px !important;

    background: #fff !important;
    color: #3E98A0 !important;

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

    font-family: inherit;
    font-size: 17px !important;
    font-weight: 700 !important;

    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
    transition: all .25s ease;
    cursor: pointer;
}

.wqcf-box .wqcf-form button[type="submit"]:hover {
    background: #f8f8f8 !important;
    color: #3E98A0 !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.wqcf-box .wqcf-form button[type="submit"]:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

/* ==========================================
   STATUS MESSAGE
========================================== */

.wqcf-box .wqcf-message {
    grid-column: 1 / -1;
    grid-row: 4;
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;
    color: #fff;
}

.wqcf-box .wqcf-message:empty {
    display: none;
}

.wqcf-box .wqcf-message[data-state="success"] {
    color: #fff;
}

.wqcf-box .wqcf-message[data-state="error"] {
    color: #ffe5e5;
}

/* ==========================================
   HIDDEN / HONEYPOT
========================================== */

.wqcf-box .wqcf-honey {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

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

.wqcf-box .wqcf-form input.wqcf-invalid,
.wqcf-box .wqcf-form select.wqcf-invalid {
    border: 2px solid #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .18) !important;
}

.wqcf-box .wqcf-form input.wqcf-invalid:focus,
.wqcf-box .wqcf-form select.wqcf-invalid:focus {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .25) !important;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .wqcf-box {
        padding: 18px;
        margin: 30px 0;
        border-radius: 16px;
    }

    .wqcf-box h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .wqcf-box > p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    .wqcf-box .wqcf-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .wqcf-box .wqcf-label {
        font-size: 15px;
    }

    .wqcf-box .wqcf-form > .wqcf-label:nth-of-type(1),
    .wqcf-box .wqcf-form > .wqcf-label:nth-of-type(2),
    .wqcf-box .wqcf-form > .wqcf-specialty,
    .wqcf-box .wqcf-form > .wqcf-province,
    .wqcf-box .wqcf-form button[type="submit"],
    .wqcf-box .wqcf-message {
        grid-column: 1;
        grid-row: auto;
    }

    .wqcf-box .wqcf-form input[type="text"],
    .wqcf-box .wqcf-form input[type="tel"],
    .wqcf-box .wqcf-form select[name="specialty"],
    .wqcf-box .wqcf-form select[name="province"] {
        height: 52px !important;
        font-size: 16px;
    }

    .wqcf-box .wqcf-form button[type="submit"] {
        max-width: none;
        width: 100%;
        height: 54px !important;
        font-size: 16px !important;
        margin-top: 0 !important;
    }
}
/* ==========================================
   WQCF LAYOUT FIX - VERSION 7.8
========================================== */

/* Form layout */
.wqcf-box .wqcf-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 20px !important;
    direction: rtl;
    align-items: start;
}

/* Fix labels */
.wqcf-box .wqcf-form > label.wqcf-label {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

/* Required star */
.wqcf-box .wqcf-form > label.wqcf-label > span {
    display: inline !important;
    color: #fff !important;
}

/* Row 1 - Full Name */
.wqcf-box .wqcf-form > label:nth-of-type(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

/* Row 1 - Mobile */
.wqcf-box .wqcf-form > label:nth-of-type(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

/* Row 2 - Specialty */
.wqcf-box .wqcf-form > label.wqcf-specialty {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

/* Row 2 - Province */
.wqcf-box .wqcf-form > label.wqcf-province {
    grid-column: 2 !important;
    grid-row: 2 !important;
}

/* Both select fields */
.wqcf-box .wqcf-form select[name="specialty"],
.wqcf-box .wqcf-form select[name="province"] {
    display: block !important;

    width: 100% !important;
    height: 56px !important;

    margin: 10px 0 0 !important;
    padding: 0 18px !important;

    box-sizing: border-box !important;

    background-color: #fff !important;
    color: #333 !important;
    -webkit-text-fill-color: #333;

    border: 0 !important;
    border-radius: 12px !important;

    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;

    direction: rtl !important;
    text-align: right !important;

    appearance: auto !important;
    -webkit-appearance: auto !important;

    background-image: none !important;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .08) !important;

    outline: none;
}

/* Row 3 - Submit button */
.wqcf-box .wqcf-form > button[type="submit"] {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;

    justify-self: center !important;
    align-self: center !important;

    width: 50% !important;
    max-width: 420px !important;

    height: 56px !important;

    margin: 8px 0 0 !important;
}

/* Status message */
.wqcf-box .wqcf-form > .wqcf-message {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
}

/* Invalid fields */
.wqcf-box .wqcf-form input.wqcf-invalid,
.wqcf-box .wqcf-form select.wqcf-invalid {
    border: 2px solid #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .18) !important;
}

/* Mobile layout */
@media (max-width: 768px) {

    .wqcf-box .wqcf-form {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .wqcf-box .wqcf-form > label:nth-of-type(1),
    .wqcf-box .wqcf-form > label:nth-of-type(2),
    .wqcf-box .wqcf-form > label.wqcf-specialty,
    .wqcf-box .wqcf-form > label.wqcf-province,
    .wqcf-box .wqcf-form > button[type="submit"],
    .wqcf-box .wqcf-form > .wqcf-message {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .wqcf-box .wqcf-form > button[type="submit"] {
        width: 100% !important;
        max-width: none !important;
    }

    .wqcf-box .wqcf-form select[name="specialty"],
    .wqcf-box .wqcf-form select[name="province"] {
        height: 52px !important;
    }
}