/* ─── Dubai Medium ─── */
@import url('https://fonts.cdnfonts.com/css/dubai');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Dubai', sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.5;
    direction: rtl;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.banner {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* THE CARDS SECTION CSS ------------------*/

.cards-container {
    max-width: 767px;
    margin: 20px auto;
    padding: 100px 2px 20px 2px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    background-color: #fff;
}

.card {
    flex: 0 0 30%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    position: relative;
    border: 1px solid #338cde3b;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.card .price {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #338cde;
    color: #fff;
    font-weight: bold;
    padding: 4px 4px;
    border-radius: 2px;
    font-size: 16.5px;
    border-radius: 50%;
    height: 50px;
    width: 50px;
    font-family: "Montserrat", sans-serif;
    line-height: 30px;
    letter-spacing: 0.3px;
}

.aed {
    font-size: 11.5px;
    font-family: "Montserrat", sans-serif;
    position: relative;
    bottom: 17px;
    left: 0px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.card img {
    width: 100%;
    display: block;
}

.card h3 {
    padding: 12px 8px;
    font-size: 14px;
    font-weight: bold;
    color: #00295b;
    border-top: 1px solid #338cde3b;
    background: linear-gradient(to top, #e7e8eaa3 0%, #ffffff 100%);
    width: 100%;
    height: 100%;
    letter-spacing: 0.5px;
}


/* CHECK CARD CHOOSE ----------------------------- */

.card-wrapper input[type="checkbox"] {
    display: none;
}

label.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    flex: 0 0 calc((100% - 32px) / 3);
    background: #fff;
    border: 1px solid rgba(51, 140, 222, 0.23);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 100%;
}

.card-wrapper label.card::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    line-height: 33px;
    font-size: 17px;
    color: #fff;
    background: #4fb901;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;

    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-wrapper input:checked+label.card::after {
    opacity: 1;
    transform: scale(1);
}

.card-wrapper label.card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(51, 139, 222, 0.244), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 0;
    border-radius: 8px;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-wrapper input:checked+label.card::before {
    opacity: 1;
}

/* THE TOTAL CHOOSING FORM  */

.content-place {
    padding: 20px 25px;
    margin: 0px auto;
    max-width: 767px;
}

.donation-card {
    direction: ltr;
    max-width: 100%;
    margin: 0px auto;
    background: #fff;
    border: 1px solid #338cde3b;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Dubai', sans-serif;
}

.card-header {
    padding: 14px 24px;
    text-align: right;
    border-bottom: 1px solid #338cde3b;
    margin: 0px 10px;
}

.header-title {
    font-weight: 600;
    color: #00295b;
    font-size: 18px;
    font-family: 'tajawal';
    letter-spacing: 0.3px;
}

.fafafa {
    background-color: #fafafa;
}

.card-body {
    display: flex;
    flex-direction: column;
}

.donation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid #338cde3b;
    margin: 0px 10px;
}

.donation-row:last-child {
    border-bottom: none;
}

.donation-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #338cde;
    cursor: pointer;
    padding: 0;
    font-size: 28px;
    line-height: 28px;
}

.donation-input {
    width: 90px;
    height: 28px;
    border: 1px solid #338bde77;
    border-radius: 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #318cdb;
    pointer-events: none;
    font-family: "Montserrat", sans-serif;
    background: #ffffff;
}

.donation-desc {
    color: #338cde;
    font-weight: bold;
    font-size: 17px;
    text-align: right;
    flex: 1;
    margin-left: 12px;
}

.total-row {
    background: #fff;
    padding: 12px 34px;
    border: 1px solid #338cde3b !important;
    margin: 0;
    border-radius: 8px;
    margin-top: 20px;

}

.total-row span {
    font-family: 'Tajawal';
    color: #338cde;
    font-weight: bold;
    font-size: 17px;
}

@media (max-width:767px) {
    .donation-desc {
        font-size: 15px;
    }

    .header-title {
        font-size: 16px;
    }

    .donation-control button {
        width: 15px;
        font-size: 22px;
    }

    .donation-row {
        padding: 12px 18px;
    }

    .card-header {
        padding: 14px 18px;
    }

    .donation-input {
        width: 80px;
        font-size: 15px;
    }

    .total-row {
        padding: 12px 28px;
    }

}

/* THE CTA BUTTONS SECTION-------------------- */

.cta {
    background: #fff;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 767px;
    margin: 0 auto;
}

.btn {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to top, #5161fe 0%, #38ccf0 100%);
    font-family: 'tajawal', sans-serif;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -ms-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
}

.btn img {
    max-width: 150px;
}

.sms-icon {
    max-width: 25px !important;
}

/* THE CARD DONATION FORM ------------------------------- */

.donation-form {
    background: #fff;
    padding: 24px;
    border: 1px solid #338cde3b;
    border-radius: 8px;
    max-width: 767px;
    margin: auto;
    font-family: 'Dubai', sans-serif;

}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr;
}

.back-button {
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Tajawal';
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #338cde;
    transition: 0.3s ease all;

}

.back-button:hover {
    background-color: #2573bc;
}

.back-button i {
    transform: rotate(180deg);
    font-size: 14px;
}

.form-title {
    font-size: 20px;
    color: #00295b;
    font-family: 'tajawal';
    letter-spacing: 0.3px;
    font-weight: 600;
}

.section {
    margin-top: 32px;
}

.donatier-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #338cde;
    font-size: 18px;
    font-family: 'tajawal';
    letter-spacing: 0.3px;
    padding-bottom: 10px;
    border-bottom: 1px solid #338cde3b;
    margin-bottom: 20px;
}

.donatier-title .icon {
    margin-left: 8px;
    color: #338cde;
}

.input-name {
    color: #00295b;
    font-weight: 600;
    letter-spacing: 0.3px;
    direction: ltr;
}

.gift-label {
    direction: ltr;
}

.gift-label input {
    width: 15px;
    height: 15px;
    margin: 3px;
}

.gift-option {
    display: flex;
    justify-content: space-between;
}

.icon.gift {
    color: #338cde;
}

.gift-phone {
    display: none;
    margin-top: 12px;
}

.gift-option:has(input[type="checkbox"]:checked)+.gift-phone {
    display: block;
}

.required {
    color: red;
}

.card-donate[type="text"],
select {
    width: 100%;
    padding: 10px;
    margin: 6px 0 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'tajawal';
    height:29px;
    line-height:29px;
}

.phone-field {
    display: flex;
    gap: 8px;
    direction: ltr;
}

.phone-field select {
    width: 100px;
}

.card-row {
    display: flex;
    gap: 16px;
}

.card-row div {
    flex: 1;
}

.captcha-box {
    margin-top: 20px;
}

/* THE SMS DONATION FORM ------------------------------- */

.sms-form {
    background: #fff;
    padding: 24px;
    border: 1px solid #338cde3b;
    border-radius: 8px;
    max-width: 767px;
    margin: auto;
    font-family: 'Dubai', sans-serif;
}

.sms-form .options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    direction: ltr;
}

.sms-form .option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 6px;
}

.sms-form .providers {
    display: flex;
    gap: 15px;
}

.sms-form .providers button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.sms-form .providers img {
    width: 32px;
    height: auto;
    display: block;
    transition: 0.3s ease all;
}

.sms-form .providers img:hover {
    transform: scale(1.15);
}

.sms-form .amount {
    font-size: 16px;
    font-weight: 600;
    color: #00295b;
    direction: rtl;
}

.language-change {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.language-change a {
    background-color: #338cde;
    color: #fff;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s ease all;
}

/* تأثير التحويم */
.language-change a:hover {
    background-color: #2573bc;
}

/* THE FOOTER -------------------------------------- */

footer {
    background: #f9fbfe;
    font-size: 15px;
    border-top: 1px solid #ccc;
    direction: ltr;
    margin-top: 10px;
}

.footer-row1 {
    max-width: 767px;
    margin: 0 auto;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-row2 {
    max-width: 767px;
    margin: 0 auto;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-row1 .contact-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
}

.footer-row1 .certification {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-row1 .certification img {
    width: 140px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: 404042;
    font-weight: 500;
    color: #404042;
    font-family: "Montserrat", sans-serif;

}

.contact-text a {
    text-decoration: none;
    color: #404042;
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 30px;
}

.contact-wrapper img {
    max-width: 50px;
}

.footer-divider {
    border: none;
    height: 1px;
    background: #ccc;
    margin: 0 auto;
    width: 80%;
}

.footer-row2 .payments {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-row2 .stores {
    display: flex;
    align-items: center;
    gap: 12px;
}

.socials {
    max-width: 115px;
    line-height: 16px;
}


.footer-row2 .socials a {
    color: #404042;
    font-size: 13px;
    padding: 3px;
    transition: 0.3s ease-in-out;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition: 0.3s ease-in-out;
    -ms-transition: 0.3s ease-in-out;
    -o-transition: 0.3s ease-in-out;
}

.footer-row2 .socials a:hover {
    color: #29292a;
}


.footer-row2 .socials .handle {
    color: #404042;
    font-size: 14px;
    font-weight: 800;
    font-family: "Montserrat", sans-serif;
}


.footer-row2 .footer-img {
    display: flex;
}

.footer-img img {
    max-width: 50px;
    margin: 3px;
}

/* RESPONSIVE SCREEN MEDIA CSS  -------------------------------------- */

@media (max-width: 767px) {

    .banner {
        height: 300px;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .card {
        flex: 0 0 30%;
    }

    .contact-wrapper img {
        max-width: 40px;
    }

    .card-wrapper input:checked+label.card::after {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

@media (min-width: 400px) and (max-width: 475px) {
    .cards-container {
        padding: 40px 20px 0px 20px;
    }

    .card .price {
        position: absolute;
        top: 5px;
        left: 5px;
        font-size: 12px;
        height: 36px;
        width: 36px;
        line-height: 21px;
    }

    .aed {
        font-size: 9px;
        bottom: 12px;


    }

    .card h3 {
        padding: 8px 4px;
        font-size: 10px;
        letter-spacing: 0.3x;
    }

    .cta {
        padding: 20px 30px;
    }

    .footer-row1,
    .footer-row2 {
        padding: 20px 40px;
    }

    .contact-text a {
        font-size: 23px;
        line-height: 22px;
    }

    .footer-row1 .certification img {
        width: 100px;
    }
}

@media (min-width: 475px) and (max-width: 540px) {
    .cards-container {
        padding: 70px 2px;
    }


    .footer-row1,
    .footer-row2 {
        padding: 20px 40px;
    }

    .contact-text a {
        font-size: 23px;
        line-height: 22px;
    }

    .footer-row1 .certification img {
        width: 100px;
    }
}

@media (min-width: 475px) and (max-width: 540px) {
    .cards-container {
        padding: 70px 2px;
    }
}


@media (max-width: 400px) {
    .cards-container {
        padding: 2px 6px;
    }

    .card .price {
        position: absolute;
        top: 5px;
        left: 5px;
        font-size: 12px;
        height: 36px;
        width: 36px;
        line-height: 21px;
    }

    .aed {
        font-size: 9px;
        bottom: 12px;


    }

    .cta {
        padding: 20px 10px;
    }


    .footer-row1,
    .footer-row2 {
        padding: 20px 30px;
    }

    .contact-text a {
        font-size: 25px;
        line-height: 23px;
    }


    .footer-row1 .certification img {
        width: 120px;
    }

    .footer-row2 .footer-img {
        max-width: 150px;
    }
}

@media (min-width: 475px) and (max-width: 540px) {
    .cards-container {
        padding: 70px 2px 0px;
    }

}

@media (min-width: 650px) and (max-width: 1024px) {
    .banner {
        margin-bottom: 110px;
    }

    .banner img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}