/* =========================================================
   Quran Haven Contact Form v3
========================================================= */

.qh-v3-contact {
    --qh-green: #075d52;
    --qh-green-2: #118272;
    --qh-ink: #153e36;
    --qh-muted: #6c7f7a;
    --qh-border: #d9e6e1;
    --qh-gold: #c69b37;

    position: relative;
    padding: 78px 0 90px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 6% 10%,
            rgba(198, 155, 55, .08),
            transparent 28%
        ),
        radial-gradient(
            circle at 94% 78%,
            rgba(7, 93, 82, .07),
            transparent 30%
        ),
        #f5faf7;

    scroll-margin-top: 90px;
}


/* Header */

.qh-v3-header {
    width: min(780px, 100%);
    margin: 0 auto 40px;
    text-align: center;
}

.qh-v3-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--qh-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.qh-v3-header h2 {
    margin: 0 0 11px;
    color: var(--qh-ink);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.qh-v3-header p {
    margin: 0;
    color: var(--qh-muted);
    font-size: 15px;
    line-height: 1.75;
}


/* Main layout */

.qh-v3-layout {
    display: grid;
    width: min(1180px, 100%);
    margin: 0 auto;
    grid-template-columns: 245px minmax(0, 860px);
    gap: 66px;
    align-items: start;
    justify-content: center;
}


/* =========================================================
   Social area
========================================================= */

.qh-v3-social {
    padding-top: 62px;
}

.qh-v3-social-title {
    max-width: 190px;
    margin: 0 0 25px;

    color: #496760;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.qh-v3-social-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
}


/* no box - icon only */

.qh-v3-social-link {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 12px;

    border: 0;
    background: none;

    color: #506d66;
    text-decoration: none;

    transition:
        transform .18s ease,
        opacity .18s ease;
}

.qh-v3-social-link:hover {
    transform: translateX(3px);
    color: inherit;
}

html[dir='rtl']
.qh-v3-social-link:hover {
    transform: translateX(-3px);
}

.qh-v3-social-link i {
    display: inline-block;
    width: 30px;

    background: none !important;

    font-size: 26px;
    line-height: 1;

    text-align: center;
}


/* WhatsApp only has text */

.qh-v3-social-link span {
    display: none;
}

.qh-v3-wa span {
    display: inline-block;
    max-width: 165px;

    color: #087a49;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
}


/* Brand colors */

.qh-v3-wa i {
    color: #18b963;
}

.qh-v3-mail i {
    color: #db5850;
}

.qh-v3-facebook i {
    color: #3974dc;
}

.qh-v3-instagram i {
    color: #d9477c;
}

.qh-v3-youtube i {
    color: #ef2f26;
}


/* =========================================================
   Card
========================================================= */

.qh-v3-form-card {
    position: relative;
    isolation: isolate;

    padding: 38px 42px 36px;

    overflow: hidden;

    border: 1px solid
        rgba(7, 93, 82, .12);

    border-radius: 27px;

    background:
        rgba(255, 253, 246, .96);

    box-shadow:
        0 24px 65px
        rgba(15, 64, 56, .09);
}


/* fine architectural lines */

.qh-v3-form-card::after {
    content: "";

    position: absolute;
    z-index: -2;
    inset: 0;

    pointer-events: none;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 72px,
            rgba(178, 139, 49, .026) 73px,
            rgba(178, 139, 49, .026) 74px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 86px,
            rgba(7, 93, 82, .022) 87px,
            rgba(7, 93, 82, .022) 88px
        );
}


/* Arabic calligraphy watermark */

.qh-v3-calligraphy {
    position: absolute;
    z-index: -1;

    top: 60px;
    left: -45px;

    width: 120%;
    height: 88%;

    overflow: hidden;

    color: #8b6b25;

    opacity: .042;

    font-family:
        "Amiri",
        "Traditional Arabic",
        "Scheherazade New",
        serif;

    font-size: 66px;
    font-weight: 400;
    line-height: 1.65;

    text-align: center;

    white-space: nowrap;

    pointer-events: none;

    transform:
        rotate(-7deg)
        scale(1.04);

    user-select: none;
}


/* Heading */

.qh-v3-form-heading {
    display: flex;
    position: relative;
    z-index: 2;

    margin-bottom: 30px;

    align-items: center;
    gap: 13px;
}

.qh-v3-form-mark {
    display: inline-flex;

    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(7, 93, 82, .1);

    border-radius: 13px;

    background: #eaf5ef;
    color: var(--qh-green);

    font-size: 18px;
}

.qh-v3-form-heading h3 {
    margin: 0 0 3px;

    color: var(--qh-ink);

    font-size: 23px;
    font-weight: 800;
}

.qh-v3-form-heading p {
    margin: 0;
    color: var(--qh-muted);
    font-size: 12px;
}


/* =========================================================
   Vertical form
========================================================= */

.qh-v3-form {
    display: flex;
    position: relative;
    z-index: 2;

    flex-direction: column;
    gap: 20px;
}


/* Field */

.qh-v3-field {
    width: 100%;
}

.qh-v3-field > label {
    display: flex;

    margin-bottom: 8px;

    align-items: center;
    gap: 5px;

    color: #21473f;

    font-size: 13px;
    font-weight: 800;
}

.qh-v3-field > label span {
    color: #c8473f;
}

.qh-v3-field > label em {
    margin-inline-start: 5px;

    color: #8b9a96;

    font-size: 11px;
    font-style: normal;
    font-weight: 500;
}


/* Controls */

.qh-v3-control {
    position: relative;
}

.qh-v3-control > i {
    position: absolute;

    top: 50%;
    left: 17px;

    z-index: 2;

    color: #158171;

    font-size: 16px;

    transform: translateY(-50%);

    pointer-events: none;
}

html[dir='rtl']
.qh-v3-control > i {
    right: 17px;
    left: auto;
}

.qh-v3-control input,
.qh-v3-control textarea {
    display: block;

    width: 100%;

    border: 1px solid var(--qh-border);
    border-radius: 14px;

    outline: 0;

    background:
        rgba(255,255,255,.88);

    color: #173e37;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.qh-v3-control input {
    min-height: 56px;
    padding: 11px 16px 11px 48px;
}

html[dir='rtl']
.qh-v3-control input {
    padding-right: 48px;
    padding-left: 16px;
}

.qh-v3-control textarea {
    min-height: 115px;

    padding:
        16px 16px 16px 48px;

    resize: vertical;

    line-height: 1.65;
}

html[dir='rtl']
.qh-v3-control textarea {
    padding-right: 48px;
    padding-left: 16px;
}

.qh-v3-control input:focus,
.qh-v3-control textarea:focus {
    border-color: #168574;

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(22, 133, 116, .09);
}

.qh-v3-control input::placeholder,
.qh-v3-control textarea::placeholder {
    color: #96a5a1;
}


/* Help */

.qh-v3-help {
    display: block;

    margin: 6px 3px 0;

    color: #899995;

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   Phone
========================================================= */

.qh-v3-phone-control
.qh-v3-dial {
    position: absolute;

    top: 50%;
    left: 47px;

    z-index: 3;

    padding-inline-end: 11px;

    border-inline-end:
        1px solid #d9e4e0;

    color: #42665f;

    font-size: 13px;
    font-weight: 750;

    transform: translateY(-50%);
}

.qh-v3-phone-control input {
    padding-left: 108px;
}

html[dir='rtl']
.qh-v3-phone-control
.qh-v3-dial {
    right: 47px;
    left: auto;

    padding-right: 0;
    padding-left: 11px;

    border-right: 0;
    border-left:
        1px solid #d9e4e0;
}

html[dir='rtl']
.qh-v3-phone-control input {
    padding-right: 108px;
    padding-left: 16px;
}


/* =========================================================
   Multi program dropdown
========================================================= */

.qh-v3-program-picker {
    position: relative;
}

.qh-v3-program-toggle {
    display: flex;

    width: 100%;
    min-height: 56px;

    padding: 10px 16px;

    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border: 1px solid var(--qh-border);
    border-radius: 14px;

    background:
        rgba(255,255,255,.9);

    color: #385b54;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.qh-v3-program-picker.is-open
.qh-v3-program-toggle {
    border-color: #168574;

    box-shadow:
        0 0 0 4px
        rgba(22, 133, 116, .09);
}

.qh-v3-program-toggle-left {
    display: inline-flex;

    min-width: 0;

    align-items: center;
    gap: 12px;
}

.qh-v3-program-toggle-left > i {
    color: #158171;
    font-size: 17px;
}

.qh-v3-chevron {
    flex: 0 0 auto;

    color: #6f8781;

    transition:
        transform .18s ease;
}

.qh-v3-program-picker.is-open
.qh-v3-chevron {
    transform: rotate(180deg);
}


/* menu */

.qh-v3-program-menu {
    position: absolute;
    z-index: 40;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    max-height: 320px;

    padding: 8px;

    overflow-y: auto;

    border: 1px solid #d7e4df;
    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 18px 45px
        rgba(18, 61, 54, .15);
}

.qh-v3-program-menu[hidden] {
    display: none;
}


/* option */

.qh-v3-program-option {
    display: flex;

    margin: 0;

    padding: 12px 11px;

    align-items: center;
    gap: 11px;

    border-radius: 10px;

    color: #2c5048;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background-color .15s ease;
}

.qh-v3-program-option:hover {
    background: #f0f8f4;
}

.qh-v3-program-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qh-v3-program-check {
    display: inline-flex;

    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    align-items: center;
    justify-content: center;

    border:
        1px solid #cbdcd6;

    border-radius: 6px;

    background: #ffffff;

    color: transparent;

    font-size: 13px;
}

.qh-v3-program-option
input:checked
+ .qh-v3-program-check {
    border-color: #168574;

    background: #168574;

    color: #ffffff;
}

.qh-v3-program-name {
    min-width: 0;
}

.qh-v3-program-error {
    margin: 7px 3px 0;

    color: #b43e3a;

    font-size: 11px;
    font-weight: 700;
}

.qh-v3-no-programs {
    padding: 16px;

    color: #738984;

    font-size: 12px;
    text-align: center;
}


/* =========================================================
   Small submit
========================================================= */

.qh-v3-submit-row {
    display: flex;

    margin-top: 2px;

    align-items: center;
    gap: 18px;
}

.qh-v3-submit {
    display: inline-flex;

    width: auto;
    min-width: 145px;
    min-height: 45px;

    padding: 10px 18px;

    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #0b7666,
            #07594e
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 9px 20px
        rgba(7, 89, 78, .16);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.qh-v3-submit:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 25px
        rgba(7, 89, 78, .22);
}

.qh-v3-submit i {
    font-size: 12px;
}

html[dir='rtl']
.qh-v3-submit i {
    transform: rotate(180deg);
}

.qh-v3-submit-note {
    display: inline-flex;

    align-items: center;
    gap: 6px;

    color: #81918d;

    font-size: 10px;
}


/* =========================================================
   Alerts
========================================================= */

.qh-v3-alert {
    display: flex;

    width: min(1180px, 100%);

    margin: 0 auto 22px;

    padding: 13px 16px;

    align-items: flex-start;
    gap: 9px;

    border-radius: 13px;

    font-size: 12px;
    line-height: 1.6;
}

.qh-v3-alert ul {
    margin: 5px 0 0;
}

.qh-v3-alert-success {
    border: 1px solid #a7dfc1;
    background: #eaf9f1;
    color: #116b43;
}

.qh-v3-alert-error {
    border: 1px solid #efb3ae;
    background: #fff1f0;
    color: #a73530;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 991.98px) {

    .qh-v3-layout {
        width: min(820px, 100%);

        grid-template-columns: 1fr;

        gap: 28px;
    }

    .qh-v3-social {
        padding-top: 0;
    }

    .qh-v3-social-title {
        max-width: none;
        margin-bottom: 15px;
        text-align: center;
    }

    .qh-v3-social-icons {
        flex-direction: row;

        align-items: center;
        justify-content: center;

        flex-wrap: wrap;

        gap: 18px;
    }

    .qh-v3-wa {
        flex-basis: 100%;

        justify-content: center;

        order: -1;
    }

    .qh-v3-wa span {
        max-width: none;
    }

    .qh-v3-form-card {
        padding: 34px 32px;
    }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {

    .qh-v3-contact {
        padding: 58px 0 66px;
    }

    .qh-v3-header {
        margin-bottom: 28px;
    }

    .qh-v3-header h2 {
        font-size: 31px;
    }

    .qh-v3-form-card {
        padding: 27px 19px;

        border-radius: 22px;
    }

    .qh-v3-calligraphy {
        left: -140px;

        width: 180%;

        font-size: 52px;

        opacity: .035;
    }

    .qh-v3-form-heading h3 {
        font-size: 20px;
    }

    .qh-v3-social-link i {
        width: 27px;
        font-size: 23px;
    }

    .qh-v3-submit-row {
        align-items: flex-start;

        flex-direction: column;
        gap: 10px;
    }

    .qh-v3-submit {
        min-width: 135px;
    }

    .qh-v3-program-menu {
        max-height: 275px;
    }
}

/* QH CONTACT CARDS V5 START */

/* =========================================================
   Layout: contact cards beside the form
========================================================= */

.qh-v3-layout {
    width: min(1240px, 100%) !important;

    grid-template-columns:
        minmax(300px, 360px)
        minmax(0, 850px) !important;

    gap: 30px !important;

    align-items: start !important;
    justify-content: center !important;
}


/* =========================================================
   Contact panel
========================================================= */

.qh-v5-contact-panel {
    position: sticky;

    top: 105px;

    display: block !important;

    padding: 20px 0 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* Heading */

.qh-v5-contact-heading {
    margin-bottom: 17px;
}

.qh-v5-contact-heading > span {
    display: block;

    margin-bottom: 5px;

    color: #173f37;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.qh-v5-contact-heading p {
    margin: 0;

    color: #687d77;

    font-size: 12px;
    line-height: 1.6;
}


/* Cards container */

.qh-v5-contact-cards {
    display: grid;

    gap: 16px;
}


/* =========================================================
   Contact card like reference screenshot
========================================================= */

.qh-v5-contact-card {
    position: relative;

    display: flex;

    min-height: 158px;

    padding: 22px 22px 20px;

    overflow: hidden;

    flex-direction: column;
    align-items: flex-start;

    border:
        1px solid
        rgba(198, 155, 55, 0.40);

    border-radius: 22px;

    background-color: #fffaf0;

    /*
    | Subtle Islamic arch pattern.
    */

    background-image:
        linear-gradient(
            rgba(255, 250, 240, 0.91),
            rgba(255, 250, 240, 0.91)
        ),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='105' viewBox='0 0 120 105' fill='none'%3E%3Cg stroke='%23c6a453' stroke-opacity='.26' stroke-width='1'%3E%3Cpath d='M12 105V58C12 33 33 13 60 13s48 20 48 45v47'/%3E%3Cpath d='M31 105V65c0-16 13-29 29-29s29 13 29 29v40'/%3E%3Cpath d='M60 13V2M53 7h14'/%3E%3Cpath d='M0 85h120M0 96h120'/%3E%3Ccircle cx='60' cy='3' r='2.5'/%3E%3C/g%3E%3C/svg%3E");

    background-repeat:
        no-repeat,
        repeat;

    background-position:
        center,
        center;

    background-size:
        auto,
        120px 105px;

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 12px 28px
        rgba(57, 73, 64, 0.055);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.qh-v5-contact-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(180, 132, 24, 0.62);

    color: inherit;

    box-shadow:
        0 18px 36px
        rgba(57, 73, 64, 0.10);
}


/* Icon without square */

.qh-v5-card-icon {
    display: inline-block;

    margin-bottom: 14px;

    color: #08735d;

    font-size: 23px;
    line-height: 1;
}


/* Title */

.qh-v5-contact-card strong {
    display: block;

    margin-bottom: 4px;

    color: #174333;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}


/* Phone / email */

.qh-v5-contact-card > span {
    display: block;

    max-width: 100%;

    margin-bottom: 8px;

    overflow-wrap: anywhere;

    color: #4d655e;

    font-size: 12px;
    line-height: 1.5;
}


/* Description */

.qh-v5-contact-card small {
    display: block;

    color: #5d6f69;

    font-size: 11px;
    line-height: 1.65;
}


/* Different small accent */

.qh-v5-whatsapp-card
.qh-v5-card-icon {
    color: #10ae63;
}

.qh-v5-email-card
.qh-v5-card-icon {
    color: #0d6656;
}


/* =========================================================
   Social follow links
========================================================= */

.qh-v5-follow {
    display: flex;

    margin-top: 19px;
    padding: 0 4px;

    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.qh-v5-follow > span {
    color: #71847e;

    font-size: 11px;
    font-weight: 700;
}

.qh-v5-follow-icons {
    display: inline-flex;

    align-items: center;

    gap: 14px;
}

.qh-v5-follow-icons a {
    display: inline-flex;

    width: 25px;
    height: 25px;

    padding: 0;

    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;

    text-decoration: none;

    transition:
        transform .18s ease,
        opacity .18s ease;
}

.qh-v5-follow-icons a:hover {
    transform: translateY(-2px);
    opacity: .82;
}

.qh-v5-follow-icons i {
    font-size: 20px;
    line-height: 1;
}

.qh-v5-facebook {
    color: #3975dd;
}

.qh-v5-instagram {
    color: #d6467d;
}

.qh-v5-youtube {
    color: #ed3128;
}


/* =========================================================
   Form card refinement
========================================================= */

.qh-v3-form-card {
    border-color:
        rgba(198, 155, 55, 0.22) !important;

    box-shadow:
        0 22px 58px
        rgba(25, 69, 61, 0.08) !important;
}


/* =========================================================
   Tablet: cards above form in two columns
========================================================= */

@media (max-width: 991.98px) {

    .qh-v3-layout {
        width: min(840px, 100%) !important;

        grid-template-columns:
            1fr !important;

        gap: 25px !important;
    }

    .qh-v5-contact-panel {
        position: static;

        padding-top: 0 !important;
    }

    .qh-v5-contact-heading {
        text-align: center;
    }

    .qh-v5-contact-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .qh-v5-follow {
        justify-content: center;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 575.98px) {

    .qh-v5-contact-cards {
        grid-template-columns:
            1fr;
    }

    .qh-v5-contact-card {
        min-height: 145px;

        padding:
            20px 19px;
    }

    .qh-v5-contact-card strong {
        font-size:
            19px;
    }

    .qh-v5-follow {
        flex-direction:
            column;

        justify-content:
            center;
    }

}

/* QH CONTACT CARDS V5 END */
