/* ==========================================================================
   Partnership & Beneficiary Pages Styles
   Extracted from inline <style> blocks
   ========================================================================== */

/* PartnershipRequest.aspx */
.btn-secondary {
    background-color: transparent !important;
    border: 2px solid #1b8354 !important;
    color: #1b8354 !important;
}
.btn-secondary:hover {
    background-color: #166a45 !important;
    border-color: #166a45 !important;
    color: #ffffff !important;
}
.btn-secondary:active {
    background-color: #104631 !important;
    border-color: #104631 !important;
    color: #ffffff !important;
}
/* .btn-primary normal/hover/pressed come from the global DGA ramp in
   styles.min.css (#1b8354/#166a45/#104631). */

main {
    padding: 20px;
}

.page-title {
    color: #1b8354 !important;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 2px solid #1b8354 !important; /* Green underline */
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    left: 5%;
    transform: translateX(-50%);
}
/* --- Form Elements --- */
fieldset {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
}

legend {
    padding: 0 10px;
    font-weight: 700;
    color: #1b8354 !important;
    font-size: 1.1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.form-group {
    margin-bottom: 8px;
    position: relative;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #161616;
    display: block;
    margin-bottom: 8px;
    font-family: 'regularFont';
}

.required {
    color: #d92d20;
    margin-right: 4px;
    font-family: regularfont;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fafafa;
}

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--primary-color); /* Green focus */
        background-color: var(--white);
    }
/* File Input Styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background-color: #fafafa00;
    cursor: pointer;
}

    .file-upload-wrapper:hover {
        border-color: var(--primary-color);
        background-color: #f3fcf6;
    }

input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    color: #666;
    pointer-events: none;
}
/* Captcha Styling */
.captcha-container {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.captcha-display {
    background: #1b8354 !important; /* Green background */
    color: #fff;
    padding: 10px 20px;

    font-weight: bold;
    letter-spacing: 3px;
    border-radius: 4px;
    user-select: none;
}

.refresh-captcha {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
}
/* Buttons */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    padding: 12px 35px;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;

    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* .btn-primary/.btn-secondary states are defined once at the top of this file
   (DGA ramp / 3-state outline). The duplicate var(--primary-color)/var(--white)
   copies were no-ops (tokens undefined) and were removed in the 2026-09-14
   CTA-unification round. */
/* Validation & Feedback */
.error-msg {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input.invalid, select.invalid, textarea.invalid {
    border-color: var(--error-color);
}
/* Success Modal - Static */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

    .modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.success-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border-top: 5px solid var(--primary-color);
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary-color);
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-svg {
    width: 50px;
    height: 50px;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
/* Responsive */
@media (max-width: 768px) {

    .btn-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .container, .container-fluid {
        padding-inline: 0.25rem;
    }
}

/* .btn-secondary 3-state outline is defined once at the top of this file —
   duplicate removed (2026-09-14 CTA-unification). */



/* .btn-primary normal/hover/pressed come from the global DGA ramp in
   styles.min.css (#1b8354/#166a45/#104631) — the file-local mint override
   was removed in the 2026-09-14 CTA-unification round. */

.breadcrumb {
    direction: rtl;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    background: #f3fcf6 !important;
    padding-right: 5%;
}

hr {
    margin: 0px !important;
    color: #f3fcf6 !important;
    border: 0;
    border-top: var(--bs-border-width) solid;
    opacity: .25;
    /* background: #f3fcf6; */
}
 .captcha-control .captcha-img .captchaimg {
 width: 200px; max-width: 100%;
 border-radius: 4px;
 overflow: hidden;
 border: solid 1px #000;
 height: 50px !important;
 }

 .captcha-control .captcha-img .refreshcaptcha {
 position: static;
 inset-inline-end: 0;
 inset-block: 0;
 margin: auto;
 width: 64px;
 height: 32px;
 }
 .form-label {
   font-family: 'regularFont';
    font-size: 16px;
    color: #000;
}
/* Style the animated line (focus-bar) */
.focus-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px; /* Thickness of the animated line */
  width: 0; /* Starts at zero width */
  background-color: #64e4fe; /* Color of the animated line */
  transition: width 0.3s ease-out; /* Animation effect */
}

/* Animate the line when the input is in focus */
.input-container input:focus + .focus-bar {
  width: 100%; /* Expands to full width on focus */
}
.form-control:focus, input[type="text"]:focus, .form-select:focus{
    box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06), 0 2px 0 #1b8354;
    transition: width 0.3s ease-out; /* Animation effect */
     /*border-color: #86b7fe00 !important;
     --bs-focus-ring-color: #86b7fe00 !important;*/
}
.form-control:focus, .form-control textarea:focus {
    outline: none;
    box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06), 0 2px 0 #1b8354;
    transition: width 0.3s ease-out; /* Animation effect */
}
form .js-form-item label.form-required::before {
    content: "*";
    color: #d92d20;
}
:root {
    --default-font-size: 16px;
    --clr-secondary: #000000;
}
    .ddlStyle {
        font-family: 'regularFont' !important;
    }

/* PartnershipRequest.aspx - Success Message */
.success-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: auto;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-header {
    background: linear-gradient(135deg, #1b8354 100%, #f3fcf6 70%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.success-icon {
    font-size: 80px;
margin-bottom: 20px;
animation: bounce 1s ease infinite alternate;
align-items: center;
text-align: center;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

.success-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.success-content {
    padding: 40px 30px;
}

.confirmation-message {
       background: #f8f9fa;
       border-radius: 12px;
       padding: 25px;
       margin-bottom: 30px;
       border-right: 5px solid #1b8354;
       direction: rtl;
}

.confirmation-message h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.confirmation-message p {
    color: #546e7a;
    line-height: 1.6;
    font-size: 1.05rem;
}

@media (max-width: 768px) {

    .success-header {
        padding: 30px 20px;
    }

    .success-header h1 {
        font-size: 2.2rem;
    }
}

/* PartnershipRequest-en.aspx */
.form-container {
    background: var(--white);
    width: 100%;
    max-width: 80%; /* Restored width to ensure horizontal scaling/grid */
    margin: 0 auto; /* Centers the form within the Master Page content area */
    padding: 25px;
    border-radius: var(--border-radius);
    /* Clean border instead of heavy shadow */
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
}

    .file-upload-wrapper:hover {
        border-color: var(--primary-color);
        background-color: var(--secondary-color);
    }

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    background: #f3fcf6 !important;
    padding-right: 5%;
}

.form-control, input[type="text"], .form-select {
width: 100%;
font-size: 16px;
color: #000;
background-color: rgba(0, 0, 0, 0);
border: 1px solid #9da4ae;
padding-block: 0.75rem;
border-radius: 4px !important;
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
            font-family: 'regularFont';
margin: 0px;
margin-bottom: 16px;
padding: 8px 16px;
outline-offset: 0px;
}

.form-control:focus {
    color: var(--bs-body-color);
    background-color: #86b7fe00 !important;
    border-color: #86b7fe00;
    outline: 0;
    box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06), 0 2px 0 #1b8354;
    transition: width 0.3s ease-out; /* Animation effect */
}

/* PartnershipRequest-en.aspx - Success Message */
.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite alternate;
}

.confirmation-message {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #1b8354;
}




.page-title {
    color: #1b8354 !important;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    border-bottom: 2px solid #1b8354 !important;
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-description {
    margin-bottom: 25px;
    color: #dba102;
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        max-width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-label {
    font-size: 16px;
    color: #000;
    font-family: 'regularFont';
    display: block;
    margin-bottom: 8px;
}

























.rating-labels {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rating-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.2s;
}

.rating-label:hover {
    background-color: #f3fcf6;
    border-color: #1b8354;
}

.rating-label.active {
    background-color: #1b8354;
    color: white;
    border-color: #1b8354;
}

.rating-label input {
    display: none;
}




/* BeneficiaryFeedback.aspx - Success Message */
.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite alternate;
    align-items: center;
    text-align: center;
    color: #1b8354;
}

.success-content {
    padding: 40px 30px;
    direction: rtl;
}

.confirmation-message {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-right: 5px solid #1b8354;
    text-align: center;
}

    .confirmation-message h2 {
        color: #1b8354;
        margin-bottom: 15px;
        font-size: 1.5rem;
    }

    


@media (max-width: 768px) {
    .success-container {
        border-radius: 15px;
    }

    .success-content {
        padding: 30px 20px;
    }
}

/* BeneficiaryPlatform.aspx */
.about-platform-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22.8125rem;
    aspect-ratio: 0.88 / 1;
    background-color: #fff;
    border-start-start-radius: 2.375rem;
    box-shadow: 0 0 0.75rem rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    height: 100%;
}

.about-platform-card-container {
    flex-shrink: 0;
    position: relative;
    padding-inline-start: 1.875rem;
    isolation: isolate;
    mix-blend-mode: darken;
    margin-bottom: 2.5rem;
}

.about-platform-card-container::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    width: 4.375rem;
    height: 420px;
    z-index: -2;
    background-image: url(/layouts/images/aboutus/pattern.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left bottom;
    border-radius: 20px;
    bottom: 0.7em;
}

.about-platform-details {
    margin-bottom: 2.5rem;
}

.about-platform-title {
    font-family: semiBoldFont;
    max-width: 490px;
    line-height: 1.5;
    font-size: 1.375rem;
    color: #4b5563 !important;
    margin-inline: 0;
    margin-bottom: 2.5rem;
    text-align: justify;
}

.about-platform-details-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-platform-details-list__item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.about-platform-details-list__item__title {
    line-height: 1.7;
    max-width: 28.125rem;
    color: #535353;
    margin: 0;
    font-family:regularFont;
}

/* Mobile: the 365px card + 30px inline-start padding overflowed the 382px
   column by 9px (decorative edge clipped by section overflow-x:clip). */
@media (max-width: 767.98px) {
    .about-platform-card-container {
        padding-inline-start: 0;
    }

    .about-platform-card {
        width: 100%;
        max-width: 22.8125rem;
    }
}

.breadcrum-Caption {
    margin-right: 320px;
    margin-top: 30px;
}

.breadcrum-banner {
    background: #F7FDF9;
    border: 1px solid #e9e9e9;
    width: 100%;
    height: 120px;
}

@media (max-width: 768px) {
    .breadcrum-Caption {
        margin-right: 30px;
        margin-top: 50px;
        font-size: 20px;
    }
}

.btn-green,
.btn-green:link,
.btn-green:visited {
    background-color: #1B8354 !important;
    border-color: #1B8354 !important;
    color: #ffffff !important;
    display: inline-block !important;
    border-radius: 4px !important;
    box-shadow: unset;
}

.btn-green:hover {
    background-color: #166a45 !important;
    border-color: #166a45 !important;
    color: #ffffff !important;
    transition: .2s all;
}

.btn-green:active {
    background-color: #104631 !important;
    border-color: #104631 !important;
    color: #ffffff !important;
}

.btn-green:focus-visible {
    outline: 2px solid #1b8354;
    outline-offset: 2px;
}

/* ===== ENGLISH LTR OVERRIDES FOR PARTNERSHIP ===== */
[dir="ltr"] .form-container {
    direction: ltr;
}
















[dir="ltr"] .form-control,
[dir="ltr"] input[type="text"],
[dir="ltr"] .form-select {
    text-align: left;
    direction: ltr;
}

[dir="ltr"] .required {
    margin-left: 4px;
    margin-right: 0;
}

[dir="ltr"] .breadcrumb {
    direction: ltr;
    padding-left: 5%;
    padding-right: 12px;
}

[dir="ltr"] .confirmation-message {
    border-left: 5px solid #1b8354;
    border-right: none;
    text-align: left;
    direction: ltr;
}
    

/* BeneficiaryFeedback.aspx */
.form-container {
    background: var(--white);
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    direction: rtl;
}
    

.form-control, input[type="text"], .form-select {
    width: 100%;
    font-size: 16px;
    color: #000;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #9da4ae;
    padding-block: 0.75rem;
    border-radius: 4px !important;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-align: right;
    font-family: 'regularFont';
    margin: 0px;
    margin-bottom: 16px;
    padding: 8px 16px;
    outline-offset: 0px;
}
    

.form-control:focus {
    color: var(--bs-body-color);
    background-color: #86b7fe00 !important;
    outline: 0;
    box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06), 0 2px 0 #1b8354;
    transition: width 0.3s ease-out;
}
    

#pnlOtherEntityName {
    display: none;
}
    

[dir="ltr"] .form-grid {
    direction: ltr;
}
    

[dir="ltr"] .form-group {
    direction: ltr;
}
    

[dir="ltr"] label {
    direction: ltr;
}
    

[dir="ltr"] fieldset {
    direction: ltr;
}
    

[dir="ltr"] legend {
    direction: ltr;
}

