@font-face {
    font-family: 'TSZunburk';
    src: url('../fonts/TSZunburkVF3-BlackOS.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
*{
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    text-decoration: none;
    font-family: 'TSZunburk', 'Cairo', sans-serif;
    text-rendering: optimizeLegibility;
    
}
h1, h2, h3, h4, h5, h6, 
.main-title, .highlight-title, .sub-title, 
.thank-you-title, .brand-name, .brand-name-thank {
    font-family: 'TSZunburk', 'Cairo', sans-serif !important;
}

body.lang-en h1, 
body.lang-en h2, 
body.lang-en h3, 
body.lang-en h4, 
body.lang-en h5, 
body.lang-en h6, 
body.lang-en .main-title, 
body.lang-en .highlight-title, 
body.lang-en .sub-title, 
body.lang-en .thank-you-title,
body.lang-en .brand-name,
body.lang-en .brand-name-thank {
    font-family: 'Montserrat', 'Cairo', sans-serif !important;
}
html{
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    background-color: #2D51F4;
    min-height: 100vh;
}
body{
font-family: 'TSZunburk', 'Cairo', sans-serif;
text-rendering: optimizeLegibility;
padding: 15px 7px;
direction:rtl;
background-color:#2D51F4;
min-height: 100vh;
box-sizing: border-box;
display: flex;
flex-direction: column;
background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), url(../img/bg/ar.png); /* Default Arabic background (underneath) */
background-size: cover;
background-position: center center !important;
background-attachment: fixed;
background-repeat: no-repeat;
position: relative;
z-index: 1;
}

/* Pseudo-element for English background to cross-fade */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), url(../img/bg/en.png);
    background-size: cover;
    background-position: center center !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease-in-out;
}

body.lang-en::before {
    opacity: 1;
}
body.lang-en {
    direction: ltr !important;
}
body.lang-ar {
    direction: rtl !important;
}
.clr{clear:both;}
#HomePage{
    position: relative;
    width: 95%;
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}
#HomePage.fade-out {
    opacity: 0;
    transform: translateY(10px);
}
footer {
    width: 100%;
    padding: 20px 0;
    margin-top: auto;
}
.uk-margin {
	margin-bottom: 30.5px !important;
}
.inpu {
    border: 2px solid rgba(128, 242, 200, 0.4);
    border-radius: 35px;
    text-align: center;
    width: 400px;
    padding: 15px 25px;
    font-size: 18px;
    color: #333;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.inpu:focus {
    border-color: #80F2C8;
    box-shadow: 0 6px 20px rgba(128, 242, 200, 0.4);
    outline: none;
}
.inpu::placeholder {
    color: #aaa;
    transition: color 0.3s;
}
.inpu:focus::placeholder {
    color: transparent;
}
.button {
    background: linear-gradient(135deg, #FFD700, #F3A183);
    border: 3px solid #FFF;
    border-radius: 40px;
    color: #2D51F4;
    font-weight: 900;
    padding: 12px 35px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4), inset 0 -3px 0 rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 10px;
}
.button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
    z-index: -1;
}
.button:hover::before {
    left: 150%;
}
.button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6), inset 0 -3px 0 rgba(0,0,0,0.1);
    color: #1a36a8;
    border-color: #FFD700;
} 
.submit-btn {
    background: linear-gradient(135deg, #2a3c90, #1e74b8) !important;
    color: #ffffff !important;
    border: 3px solid #f79622 !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 25px rgba(42, 60, 144, 0.4), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
}
.submit-btn:hover {
    background: linear-gradient(135deg, #1e74b8, #2a3c90) !important;
    color: #f79622 !important;
    border-color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(42, 60, 144, 0.6), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
}
.aid-text{color:#fff;font-size:24px;line-height:40px;font-family: 'TSZunburk', sans-serif;width:90%;max-width: 600px; margin: 0 auto;text-shadow: 0 2px 10px rgba(0,0,0,0.2);}
.col-3 b {
    color: #fff;
    font-size: 12px;
}
.result-card {
    background: #ffffff;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 30px auto;
    max-width: 400px;
    width: 90%;
}
.preview-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.action-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px !important;
    width: 100%;
}
.action-buttons .button {
    flex: 1;
    min-width: 150px;
    max-width: 220px;
    font-size: 19px !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    white-space: nowrap;
    border-radius: 40px !important;
}
body.lang-en .action-buttons .button {
    font-size: 17px !important;
}
.reveal-btn {
    background: linear-gradient(135deg, #f79622, #e08316) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 25px rgba(247, 150, 34, 0.35), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
}
.reveal-btn:hover {
    background: linear-gradient(135deg, #e08316, #f79622) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(247, 150, 34, 0.55), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
    transform: translateY(-4px) scale(1.03);
}
.download-btn {
    background: linear-gradient(135deg, #2a3c90, #1e74b8) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 25px rgba(42, 60, 144, 0.35), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
}
.download-btn:hover {
    background: linear-gradient(135deg, #1e74b8, #2a3c90) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(42, 60, 144, 0.55), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
    transform: translateY(-4px) scale(1.03);
}
.return-btn {
    background: linear-gradient(135deg, #f79622, #e08316) !important;
    color: #ffffff !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 25px rgba(247, 150, 34, 0.35), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
}
.return-btn:hover {
    background: linear-gradient(135deg, #e08316, #f79622) !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(247, 150, 34, 0.55), inset 0 -3px 0 rgba(0,0,0,0.1) !important;
    transform: translateY(-4px) scale(1.03);
}
.button-icon {
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}
@media screen and (max-width: 600px){ 
    body {
        background-position: center center !important;
    }
    label {
        display:block;
        width:75px;
    }
.uk-margin {
	margin-bottom: 15px !important;
	margin-top: 10px;
}
.button {
	width: 100% !important;
	max-width: 280px;
	margin: 5px auto !important;
	padding: 10px 15px !important;	
	font-size: 18px !important;
}
.submit-btn {
	font-size: 22px !important;
}
* + .uk-margin {
	margin-top: 5px 0 0 !important;
}
.aid-text{font-size:18px;width:95%;line-height: 30px !important;margin: 15px auto !important;}  
#HomePage{width:100%;padding-top:0px;} 
.inpu{width: 90%; max-width: 350px;} 
footer {width: 100%;font-size:12px;}
.result-card { padding: 8px; margin: 20px auto; }
}
* + h1, * + .uk-h1, * + h2, * + .uk-h2, * + h3, * + .uk-h3, * + h4, * + .uk-h4, * + h5, * + .uk-h5, * + h6, * + .uk-h6, * + .uk-heading-small, * + .uk-heading-medium, * + .uk-heading-large, * + .uk-heading-xlarge, * + .uk-heading-2xlarge {
	margin-top: 25px !important;
}

/* Language Switcher */
.lang-switcher-container {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1000;
}
.lang-switch-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
/* In Arabic mode, the button shows "English" text. Use Tajawal for English text */
body.lang-ar .lang-switch-btn,
body.lang-ar #lang-btn-text {
    font-family: 'Tajawal', sans-serif !important;
}
/* In English mode, the button shows "العربية" text. Use TSZunburk / Cairo for Arabic text and make it larger & bolder */
body.lang-en .lang-switch-btn,
body.lang-en #lang-btn-text {
    font-family: 'TSZunburk', 'Cairo', sans-serif !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #f79622;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(247, 150, 34, 0.25);
    color: #f79622;
}
.lang-switch-btn span,
.lang-switch-btn .lang-icon {
    display: inline-block;
    line-height: 1;
    margin: 0;
    vertical-align: middle;
}
/* Font-specific baseline adjustments to align perfectly with the boxicons globe */
body.lang-ar .lang-switch-btn span {
    position: relative;
    top: 2px;
}
body.lang-en .lang-switch-btn span {
    position: relative;
    top: 1px;
}
.lang-switch-btn .lang-icon {
    font-size: 22px !important;
    transition: transform 0.6s ease;
}
.lang-switch-btn:hover .lang-icon {
    transform: rotate(180deg);
}

/* Language Show/Hide rules */
body.lang-en .lang-text-ar { display: none !important; }
body.lang-en .lang-text-en { display: block !important; }
body.lang-ar .lang-text-ar { display: block !important; }
body.lang-ar .lang-text-en { display: none !important; }

/* Custom typography for Eid Campaign */
.aid-text {
    width: 90%;
    max-width: 750px;
    margin: 25px auto !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    font-family: 'Cairo', 'TSZunburk', sans-serif;
    color: #fff;
    line-height: 1.5 !important;
}
.highlight-title {
    font-size: 26px;
    color: #f79622;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.lang-text-en .highlight-title {
    font-size: 24px;
    letter-spacing: 0px;
}
.main-title {
    font-size: 38px;
    color: #ffffff;
    font-weight: 900;
    margin: 15px 0 !important;
    line-height: 1.3;
}
.sub-title {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin: 10px 0 !important;
}
.brand-name {
    color: #f79622;
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 900 !important;
}
.brand-name-thank {
    color: #f79622;
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 900 !important;
}
.terms-note {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 13px;
    color: #ffffff;
    font-style: normal;
    margin-top: 15px !important;
}

/* Success State & Checkmark Animation */
.thank-you-message {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 650px;
    width: 90%;
    margin: 20px auto;
    text-align: center;
    color: #fff;
    animation: fadeInUp 0.6s ease-out;
    direction: inherit;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.success-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-checkmark-circle {
    width: 80px;
    height: 80px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.35);
    animation: popInCheckmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.success-check-icon {
    font-size: 52px;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
}
@keyframes popInCheckmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-title {
    font-family: 'Cairo', 'TSZunburk', sans-serif;
    font-size: 34px;
    color: #f79622;
    margin-bottom: 15px;
    font-weight: 900;
}
.thank-you-main {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}
.thank-you-sub {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    line-height: 1.5;
}
.terms-box {
    text-align: right;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    font-size: 20px;
    line-height: 1.6;
    border-right: 4px solid #f79622;
    margin-top: 20px;
}
body.lang-en .terms-box {
    text-align: left;
    border-right: none;
    border-left: 4px solid #f79622;
}
.terms-box h3 {
    font-size: 22px;
    color: #f79622;
    margin: 0 0 12px !important;
    font-weight: bold;
}
.terms-box ul {
    margin: 0;
    padding: 0 20px;
    list-style-type: decimal;
}
body.lang-en .terms-box ul {
    padding: 0 20px;
}
.terms-box ul li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 19px;
}

/* Bitrix form styling integration */
.bitrix-form-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    width: 90%;
    margin: 15px auto;
    overflow: hidden;
}
body.lang-en .bitrix-form-wrapper {
    direction: ltr;
    text-align: left;
}
body.lang-ar .bitrix-form-wrapper {
    direction: rtl;
    text-align: right;
}
body.lang-ar .bitrix-form-wrapper * {
    font-family: 'Tajawal', 'Cairo', sans-serif !important;
}
body.lang-en .bitrix-form-wrapper * {
    font-family: 'Tajawal', sans-serif !important;
}
/* Fix Bitrix form floating labels and placeholders clipping in Arabic & English modes */
body.lang-ar .b24-form-control-label,
body.lang-en .b24-form-control-label,
body.lang-ar .b24-form-control-placeholder,
body.lang-en .b24-form-control-placeholder {
    direction: ltr !important;
    text-align: left !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important; /* Force normal wrapping to override Bitrix default nowrap and prevent trimming */
    height: auto !important;
    line-height: normal !important;
}
body.lang-ar .b24-form-field,
body.lang-en .b24-form-field,
body.lang-ar .b24-form-control-container,
body.lang-en .b24-form-control-container {
    overflow: visible !important;
}
body.lang-ar .b24-form-control::placeholder,
body.lang-en .b24-form-control::placeholder,
body.lang-ar .b24-form-control::-webkit-input-placeholder,
body.lang-en .b24-form-control::-webkit-input-placeholder,
body.lang-ar .b24-form-control::-moz-placeholder,
body.lang-en .b24-form-control::-moz-placeholder,
body.lang-ar .b24-form-control:-ms-input-placeholder,
body.lang-en .b24-form-control:-ms-input-placeholder {
    direction: ltr !important;
    text-align: left !important;
    line-height: normal !important;
    overflow: visible !important;
}
.bitrix-form-wrapper iframe {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    min-height: 480px;
    border-radius: 12px;
}

/* Responsive adjustment overrides for titles and content */
@media screen and (max-width: 600px) {
    .lang-switcher-container {
        position: static !important;
        margin: 15px auto 10px !important;
        display: block !important;
        text-align: center !important;
        width: fit-content;
    }
    .lang-switch-btn {
        padding: 10px 20px !important;
        font-size: 15px !important;
    }
    .lang-switch-btn .lang-icon {
        font-size: 18px !important;
    }
    body.lang-en .lang-switch-btn {
        font-size: 17px !important;
        font-weight: 900 !important;
    }
    .main-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    .highlight-title {
        font-size: 18px !important;
    }
    .sub-title {
        font-size: 15px !important;
    }
    .thank-you-title {
        font-size: 28px !important;
    }
    .thank-you-main {
        font-size: 21px !important;
    }
    .thank-you-sub {
        font-size: 17px !important;
    }
    .terms-box {
        padding: 18px;
        font-size: 17px !important;
    }
    .bitrix-form-wrapper {
        width: 95% !important;
        padding: 10px !important;
    }
    .terms-box h3 {
        font-size: 19px !important;
    }
    .terms-box ul li {
        font-size: 16px !important;
    }
    .action-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .action-buttons .button {
        width: 100% !important;
        max-width: 280px !important;
        min-width: 0 !important;
        font-size: 18px !important;
        padding: 12px 15px !important;
        margin: 0 auto !important;
        white-space: normal;
    }
}