
/* =========================
   FONTS
========================= */

@import url(
    'https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&family=Noto+Serif+Bengali:wght@400;500;600;700;800;900&display=swap'
);


/* =========================
   ROOT
========================= */

:root {
    --green: #087a43;
    --dark-green: #056334;
    --orange: #f47b20;
    --dark-orange: #e35f08;
    --lime: #a7c438;
    --mint: #eaf8f6;
    --white: #ffffff;
    --text: #171717;
    --muted: #777777;
    --border: #cfdde2;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        "Noto Sans Bengali",
        "SolaimanLipi",
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--mint);
}


/* =========================
   MAIN PAGE
========================= */

.page-wrapper {
    width: 100%;
    max-width: 900px;
    min-height: 100vh;

    margin: 0 auto;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(235, 249, 248, .16),
            rgba(235, 249, 248, .16)
        ),
        url("../../assets/images/background.jpg");

    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: relative;

    width: 100%;

    text-align: center;

    padding: 30px 25px 20px;
}


/* =========================
   HEADER LOGO
========================= */

.logo-area {
    position: absolute;

    left: 25px;
    top: 25px;

    z-index: 5;
}

.logo-placeholder {
    width: 88px;
    height: 88px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* No circle */
    border-radius: 0;

    background: transparent;

    box-shadow: none;
    border: none;

    overflow: hidden;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    display: block;
}


/* =========================
   HEADER CONTENT
========================= */

.header-content {
    text-align: center;

    padding: 25px 20px 20px;
}

.bismillah {
    margin-bottom: 8px;

    color: #111;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 25px;
    font-weight: 600;

    line-height: 1.4;
}


/* =========================
   MAIN HEADING
========================= */

.main-heading {
    margin: 0;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-weight: 900;

    line-height: .98;
    letter-spacing: -1px;
}

.main-heading span {
    display: block;
}


/* Orange / Red lines */

.main-heading span:nth-child(1),
.main-heading span:nth-child(2) {
    font-size: 58px;

    background:
        linear-gradient(
            90deg,
            #ff7a00,
            #e52b12
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* Green line */

.main-heading span:nth-child(3) {
    font-size: 58px;
    color: #078443;
}


/* =========================================================
   MEMBER FORM SECTION
========================================================= */

.member-form-section {
    width: 100%;
    max-width: 950px;

    margin: 0 auto;

    padding: 10px 20px 0;

    box-sizing: border-box;
}


/* =========================
   FORM CARD
========================= */

.form-card {
    position: relative;

    width: 100%;

    padding: 38px 42px 36px;

    background: rgba(255, 255, 255, .95);

    border: 2px solid #15965c;
    border-radius: 20px;

    box-shadow:
        0 8px 22px rgba(0, 80, 50, .15);

    overflow: hidden;
}


/* =========================
   FORM TITLE
========================= */

.form-card h2 {
    margin: 0 0 5px;

    text-align: center;

    color: var(--green);

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 28px;
    font-weight: 900;
}

.form-description {
    margin: 0 0 27px;

    text-align: center;

    color: #777;

    font-family:
        "Noto Sans Bengali",
        sans-serif;

    font-size: 13px;
}


/* =========================
   FORM GROUP
========================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #111;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 20px;
    font-weight: 800;
}

.form-group label span {
    color: #e53935;
}


/* =========================================================
   INPUT ICON WRAPPER
========================================================= */

.input-icon-field {
    position: relative;
    width: 100%;
}


/* =========================
   INPUT ICON
========================= */

.input-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    width: 22px;
    height: 22px;

    transform: translateY(-50%);

    color: #687078;

    pointer-events: none;

    z-index: 3;
}


/* =========================================================
   INPUTS
========================================================= */

.input-icon-field input,
.input-icon-field select,
.input-icon-field textarea {
    width: 100%;

    box-sizing: border-box;

    border: 2px solid #d6dde4;
    border-radius: 9px;

    background: rgba(255, 255, 255, .92);

    color: #333;

    font-family:
        "Noto Sans Bengali",
        sans-serif;

    font-size: 17px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


/* Input + Select */

.input-icon-field input,
.input-icon-field select {
    height: 56px;

    padding:
        0 16px 0 53px !important;
}


/* Select */

.input-icon-field select {
    cursor: pointer;
    appearance: auto;
}


/* Textarea */

.input-icon-field textarea {
    min-height: 105px;

    padding:
        13px 16px 13px 53px !important;

    resize: vertical;
}


/* Textarea icon */

.textarea-field .input-icon {
    top: 19px;
    transform: none;
}


/* Placeholder */

.input-icon-field input::placeholder,
.input-icon-field textarea::placeholder {
    color: #9aa1a8;
}


/* Focus */

.input-icon-field input:focus,
.input-icon-field select:focus,
.input-icon-field textarea:focus {
    border-color: #079653;

    box-shadow:
        0 0 0 3px rgba(8, 122, 67, .10);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

#submitBtn {
    width: 100%;
    height: 60px;

    margin-top: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    border: none;
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #009b58,
            #00834a
        );

    color: #fff;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 27px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 5px 13px rgba(0, 130, 75, .20);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

#submitBtn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(0, 130, 75, .25);
}

#submitBtn:active {
    transform: translateY(0);
}

#submitBtn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.submit-icon {
    width: 29px;
    height: 29px;

    flex-shrink: 0;
}


/* =========================
   FORM MESSAGE
========================= */

.form-message {
    margin-top: 10px;

    text-align: center;

    font-family:
        "Noto Sans Bengali",
        sans-serif;

    font-size: 14px;
}


/* =========================================================
   FORM DECORATIONS
========================================================= */

.form-decoration.top-left {
    position: absolute;

    top: 0;
    left: 0;

    width: 95px;
    height: 95px;

    background:
        linear-gradient(
            135deg,
            #ff7800 0 43%,
            #008b50 44% 68%,
            transparent 69%
        );

    border-radius: 18px 0 0 0;

    pointer-events: none;
    z-index: 1;
}

.form-decoration.top-right {
    display: none;
}

.form-decoration.bottom-right {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 105px;
    height: 105px;

    background:
        linear-gradient(
            315deg,
            #ff7800 0 30%,
            #008b50 31% 58%,
            transparent 59%
        );

    border-radius: 0 0 18px 0;

    pointer-events: none;
    z-index: 1;
}


/* =========================================================
   NOTE OUTSIDE FORM BOX
========================================================= */

.form-note {
    display: block;

    width: 100%;

    margin: 13px 0 20px;
    padding: 0 10px;

    text-align: center;

    color: var(--green);

    font-family:
        "Noto Sans Bengali",
        sans-serif;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.8;
}


/* =========================================================
   INFORMATION SECTION
========================================================= */

.information-section {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 8px 25px 20px;

    text-align: center;
}

.information-text {
    margin: 0 auto;

    color: #111;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 34px;
    font-weight: 800;

    line-height: 1.18;
    text-align: center;
}

.information-text span {
    display: inline-block;

    padding: 0 8px;

    color: #fff;

    background: #07934e;

    border-radius: 3px;
}


/* =========================================================
   FOUR PROGRAM CARDS
========================================================= */

.program-section {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 5px 25px 35px;
}


/* =========================
   PROGRAM TITLE
========================= */

.program-title {
    display: inline-block;

    margin: 0 auto 22px;
    padding: 2px 10px 4px;

    position: relative;
    left: 50%;

    transform: translateX(-50%);

    background: #ffe500;

    color: #111;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 30px;
    font-weight: 900;

    line-height: 1.2;

    white-space: nowrap;
}


/* =========================
   GRID
========================= */

.program-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px 38px;

    width: 100%;
}


/* =========================
   CARD
========================= */

.program-card {
    position: relative;

    min-height: 125px;

    display: flex;
    align-items: center;

    box-sizing: border-box;

    background: #fff;

    border: 6px solid #fff;
    border-radius: 20px;

    box-shadow:
        0 5px 13px rgba(0, 70, 60, .18);

    overflow: visible;
}


/* Left cards */

.program-card.orange {
    padding:
        0 78px 0 25px;
}


/* Right cards */

.program-card.green {
    padding:
        0 25px 0 78px;
}


/* =========================
   CARD TEXT
========================= */

.card-text {
    flex: 1;

    color: #111;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.35;

    text-align: center;
}


/* =========================
   NUMBER BLOCK
========================= */

.program-card .number {
    position: absolute;

    top: -6px;
    bottom: -6px;

    width: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 42px;
    font-weight: 900;

    line-height: 1;

    z-index: 2;
}


/* Orange number */

.program-card.orange .number {
    right: -6px;

    background:
        linear-gradient(
            180deg,
            #ff9800,
            #ff7200
        );

    border-radius: 0 16px 16px 0;
}


/* Green number */

.program-card.green .number {
    left: -6px;

    background:
        linear-gradient(
            180deg,
            #a8d52d,
            #82b814
        );

    border-radius: 16px 0 0 16px;
}


/* =========================
   LEFT ARROW
========================= */

.program-card.orange::before {
    content: "";

    position: absolute;

    left: -25px;
    top: 50%;

    width: 0;
    height: 0;

    transform: translateY(-50%);

    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-right: 25px solid #fff;

    z-index: 1;

    filter:
        drop-shadow(-2px 2px 2px rgba(0,0,0,.08));
}


/* =========================
   RIGHT ARROW
========================= */

.program-card.green::after {
    content: "";

    position: absolute;

    right: -25px;
    top: 50%;

    width: 0;
    height: 0;

    transform: translateY(-50%);

    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 25px solid #fff;

    z-index: 1;

    filter:
        drop-shadow(2px 2px 2px rgba(0,0,0,.08));
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    position: relative;

    width: 100%;

    text-align: center;

    padding:
        26px 20px 35px;

    border-top:
        5px solid var(--green);

    border-bottom:
        6px solid var(--green);
}


/* =========================
   FOOTER LOGO
========================= */

.footer-logo {
    width: 90px;
    height: 90px;

    margin: 0 auto 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.footer-logo img {
    width: 85px;
    height: 85px;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    display: block;
}


/* =========================
   FOOTER TITLE
========================= */

.footer-title {
    color: var(--green);

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size:
        clamp(27px, 4vw, 35px);

    line-height: 1.3;

    font-weight: 800;
}


/* =========================
   FOOTER LOCATION
========================= */

.footer-location {
    margin-top: 5px;

    color: #111;

    font-family:
        "Noto Serif Bengali",
        serif;

    font-size: 20px;

    line-height: 1.5;

    font-weight: 700;
}

.footer-location div {
    margin: 1px 0;
}


/* =========================
   WEBSITE CREDIT
========================= */

.website-credit {
    width: 100%;

    margin-top: 16px;
    padding: 0 10px 5px;

    text-align: center;

    color: #555;

    font-family:
        "Noto Sans Bengali",
        sans-serif;

    font-size: 15px;

    line-height: 1.8;
}

.website-credit strong {
    display: block;

    margin-top: 2px;

    color: var(--green);

    font-size: 18px;
    font-weight: 800;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 700px) {

    .page-wrapper {
        max-width: 100%;
    }


    /* Header */

    .header {
        padding:
            14px 10px 10px;
    }

    .logo-area {
        position: static;

        margin-bottom: 4px;
    }

    .logo-placeholder {
        width: 80px;
        height: 80px;

        margin: auto;
    }

    .logo-placeholder img {
        width: 80px;
        height: 80px;
    }

    .header-content {
        padding:
            8px 10px 12px;
    }

    .bismillah {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .main-heading {
        line-height: 1;
        letter-spacing: -.5px;
    }

    .main-heading span:nth-child(1),
    .main-heading span:nth-child(2) {
        font-size: 30px;
    }

    .main-heading span:nth-child(3) {
        font-size: 31px;
    }


    /* Form */

    .member-form-section {
        padding:
            7px 10px 0;
    }

    .form-card {
        padding:
            27px 20px 25px;

        border-radius: 15px;
    }

    .form-card h2 {
        font-size: 22px;
    }

    .form-description {
        margin-bottom: 20px;
        font-size: 11px;
    }

    .form-group {
        margin-bottom: 13px;
    }

    .form-group label {
        margin-bottom: 5px;
        font-size: 14px;
    }

    .input-icon {
        left: 11px;

        width: 17px;
        height: 17px;
    }

    .input-icon-field input,
    .input-icon-field select {
        height: 41px;

        padding:
            0 10px 0 37px !important;

        font-size: 11px;

        border-radius: 7px;
    }

    .input-icon-field textarea {
        min-height: 75px;

        padding:
            9px 10px 9px 37px !important;

        font-size: 11px;

        border-radius: 7px;
    }

    .textarea-field .input-icon {
        top: 12px;
    }

    #submitBtn {
        height: 45px;

        gap: 8px;

        font-size: 17px;

        border-radius: 7px;
    }

    .submit-icon {
        width: 20px;
        height: 20px;
    }

    .form-decoration.top-left {
        width: 58px;
        height: 58px;

        border-radius: 14px 0 0 0;
    }

    .form-decoration.bottom-right {
        width: 65px;
        height: 65px;

        border-radius: 0 0 14px 0;
    }

    .form-note {
        margin:
            10px 0 17px;

        padding:
            0 8px;

        font-size: 9px;
    }


    /* Information */

    .information-section {
        padding:
            6px 12px 15px;
    }

    .information-text {
        font-size: 16px;
        line-height: 1.25;
    }

    .information-text span {
        padding: 0 4px;
    }


    /* Program */

    .program-section {
        padding:
            5px 18px 25px;
    }

    .program-title {
        margin-bottom: 14px;

        padding:
            2px 7px 3px;

        font-size: 18px;
    }

    /* Keep 2 x 2 like the reference */

    .program-grid {
        grid-template-columns:
            1fr 1fr;

        gap:
            10px 12px;
    }

    .program-card {
        min-height: 72px;

        border-width: 4px;
        border-radius: 12px;
    }

    .program-card.orange {
        padding:
            0 42px 0 7px;
    }

    .program-card.green {
        padding:
            0 7px 0 42px;
    }

    .program-card .number {
        width: 38px;

        top: -4px;
        bottom: -4px;

        font-size: 24px;
    }

    .program-card.orange .number {
        right: -4px;

        border-radius:
            0 9px 9px 0;
    }

    .program-card.green .number {
        left: -4px;

        border-radius:
            9px 0 0 9px;
    }

    .card-text {
        font-size: 10px;
        line-height: 1.35;
    }

    .program-card.orange::before {
        left: -13px;

        border-top-width: 13px;
        border-bottom-width: 13px;
        border-right-width: 13px;
    }

    .program-card.green::after {
        right: -13px;

        border-top-width: 13px;
        border-bottom-width: 13px;
        border-left-width: 13px;
    }


    /* Footer */

    .footer {
        padding:
            20px 12px 22px;

        border-top-width: 3px;
        border-bottom-width: 4px;
    }

    .footer-logo {
        width: 65px;
        height: 65px;

        margin-bottom: 7px;
    }

    .footer-logo img {
        width: 60px;
        height: 60px;
    }

    .footer-title {
        font-size: 22px;
    }

    .footer-location {
        margin-top: 4px;
        font-size: 15px;
    }

    .website-credit {
        margin-top: 12px;
        padding-bottom: 3px;

        font-size: 10px;
        line-height: 1.7;
    }

    .website-credit strong {
        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .logo-placeholder {
        width: 72px;
        height: 72px;
    }

    .logo-placeholder img {
        width: 72px;
        height: 72px;
    }

    .bismillah {
        font-size: 13px;
    }

    .main-heading span:nth-child(1),
    .main-heading span:nth-child(2) {
        font-size: 27px;
    }

    .main-heading span:nth-child(3) {
        font-size: 28px;
    }

    .form-card {
        padding:
            24px 15px 23px;
    }

    .form-card h2 {
        font-size: 20px;
    }

    .form-description {
        font-size: 10px;
    }

    .form-group label {
        font-size: 13px;
    }

    .input-icon-field input,
    .input-icon-field select {
        height: 39px;
        font-size: 10px;
    }

    .input-icon-field textarea {
        min-height: 70px;
        font-size: 10px;
    }

    #submitBtn {
        height: 43px;
        font-size: 16px;
    }

    .information-text {
        font-size: 15px;
    }

    .program-title {
        font-size: 16px;
    }

    .program-grid {
        gap: 8px 10px;
    }

    .program-card {
        min-height: 68px;
    }

    .card-text {
        font-size: 9px;
    }

    .program-card .number {
        width: 34px;
        font-size: 21px;
    }

    .program-card.orange {
        padding-right: 37px;
    }

    .program-card.green {
        padding-left: 37px;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-location {
        font-size: 14px;
    }

    .website-credit {
        font-size: 9px;
    }

    .website-credit strong {
        font-size: 11px;
    }
}

/* =========================================================
   SUCCESS POPUP
========================================================= */

.success-popup-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.68);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.success-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}


.success-popup {
    position: relative;

    width: 100%;
    max-width: 470px;

    padding: 38px 30px 30px;

    background: #ffffff;

    border-radius: 24px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.30);

    transform:
        translateY(35px)
        scale(0.94);

    transition:
        transform 0.35s ease;
}


.success-popup-overlay.show .success-popup {
    transform:
        translateY(0)
        scale(1);
}


/* CLOSE BUTTON */

.popup-close {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 38px;
    height: 38px;

    padding: 0;

    border: none;

    background: transparent;

    color: #777;

    font-size: 30px;
    line-height: 38px;

    cursor: pointer;

    border-radius: 50%;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.popup-close:hover {
    background: #f2f2f2;
    color: #333;
}


/* CHECK ICON */

.popup-check {
    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #4f1b90;

    color: #ffffff;

    font-size: 38px;
    font-weight: 700;

    box-shadow:
        0 10px 28px rgba(79, 27, 144, 0.28);
}


/* TITLE */

.success-popup h2 {
    margin: 0 0 10px;

    color: #4f1b90;

    font-size: 30px;
    font-weight: 700;
}


/* SUCCESS TEXT */

.popup-success-text {
    margin: 0 0 20px;

    color: #333;

    font-size: 16px;

    line-height: 1.7;
}


/* MESSAGE BOX */

.popup-message {
    margin-bottom: 22px;

    padding: 18px 17px;

    background: #f6f8f6;

    border-radius: 15px;

    border-left: 4px solid #4f1b90;

    text-align: left;
}


.popup-message p {
    margin: 0;

    color: #333;

    font-size: 15px;

    line-height: 1.9;
}


/* QURAN REFERENCE */

.quran-reference {
    margin-top: 16px;

    padding-top: 14px;

    border-top: 1px solid #dddddd;

    color: #4f1b90;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.8;
}


/* SOURCE */

.quran-source {
    margin-top: 6px;

    color: #666;

    font-size: 13px;

    font-weight: 600;
}


/* OK BUTTON */

.popup-ok {
    width: 100%;

    padding: 13px 20px;

    border: none;

    border-radius: 12px;

    background: #4f1b90;

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.popup-ok:hover {
    transform: translateY(-2px);
}


.popup-ok:active {
    transform: translateY(0);
}


/* MOBILE POPUP */

@media (max-width: 480px) {

    .success-popup-overlay {
        padding: 15px;
    }

    .success-popup {
        max-width: 360px;

        padding:
            34px 20px 22px;

        border-radius: 20px;
    }

    .popup-check {
        width: 62px;
        height: 62px;

        font-size: 32px;

        margin-bottom: 15px;
    }

    .success-popup h2 {
        font-size: 26px;
    }

    .popup-success-text {
        font-size: 15px;
    }

    .popup-message {
        padding: 15px 14px;
    }

    .popup-message p {
        font-size: 14px;
        line-height: 1.8;
    }

    .quran-reference {
        font-size: 14px;
        line-height: 1.8;
    }

    .quran-source {
        font-size: 12px;
    }
}