@charset "UTF-8";

@font-face {
    font-family: 'Nunito';
    src: url(../fonts/Nunito-Regular.ttf), url(../fonts/Nunito-Black.ttf)
}

.navbar-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .navbar-modern.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
}

    .navbar-brand img {
        height: 40px;
        margin-right: 12px;
    }

.company-logo-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    /*-webkit-text-fill-color: transparent;*/
    background-clip: text;
    font-weight: 700;
}

.footer-modern {
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fbfd 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.footer-content {
    padding: 3rem 0 1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.02);
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.footer-logo {
    max-height: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

    .footer-logo:hover {
        opacity: 1;
    }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--bs-body-font-family);
}

main {
    flex: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Index page */

.hero-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    }

.welcome-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

    .feature-icon.purple {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .feature-icon.blue {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
    }

    .feature-icon.green {
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        color: white;
    }

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /*
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .step-card:hover {
        transform: translateX(10px);
        border-color: #667eea;
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
    }

.btn-gradient {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    border: none;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
        color: white;
    }

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    top: 70%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    bottom: 10%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: spin 10s linear infinite;
}

.badge-modern {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.illustration-container {
    position: relative;
    z-index: 1;
}

    .illustration-container img {
        max-width: 100%;
        height: auto;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    }

@media (max-width: 768px) {
    .welcome-card {
        padding: 2rem;
    }

    .btn-gradient {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* End Index page */

.btn-custom {
    color: #343a40;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

    .btn-custom:hover {
        color: #343a40;
        text-decoration: underline;
    }

#issued {
    display: none;
    margin: 0.4rem 0 0 0;
}


/* Custom styles */

.logoText:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    top: calc(50% - 30px);
    height: 52px;
    width: 1px;
    background-color: #ffffff;
    margin: 1rem auto;
}

.logoImg {
    width: 250px;
    min-height: 50px;
}

/* Make it sexy */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.25px;
}

ol {
    padding-left: 50px;
}

li {
    color: #333333;
    padding-left: 25px;
    margin-top: 24px;
    position: relative;
    font-size: 16px;
    line-height: 30px;
}

.alternating-colors li::before {
    content: '';
    display: block;
    height: 42px;
    width: 42px;
    border-radius: 50%;
    border: 2px solid #ddd;
    position: absolute; /* Manually position based on text size and line height */
    top: -6px;
    left: -34px;
}

strong {
    color: #292929;
}

ol.alternating-colors li:nth-child(odd)::before {
    border-color: #38018d;
}

ol.alternating-colors li:nth-child(even)::before {
    border-color: #F7EF46;
}


form {
    input

{
    border: 2px solid #5900ff;
    outline: 0;
    padding: 1em;
    border-radius: 8px;
    display: block;
    width: 100%;
    /*margin-top: 1em;*/
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    resize: none;
    &:focus

{
    box-shadow: 0 0px 2px rgba(11, 173, 2, 1) !important;
}

}
}

#idVerify {
    color: #fff;
    cursor: pointer;
    min-width: 50%;
    background: #5900ff;
    border: 2px solid #5900ff;
    box-sizing: border-box;
    border-radius: 20px;
    font-size: 1.2rem;
    line-height: 17px;
    padding: 16px 32px;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 1250px;
    margin: 150px auto;
    padding: 20px;
    gap: 20px;
}

#msform span {
    display: inline-block;
    /* background: #38018d; */
    margin-top: 32px;
    padding: 8px 15px;
    font-size: 1.3rem;
    border-radius: 50px;
    font-weight: 600;
}

.card-number-cricle {
    text-align: center;
    width: 61px;
    height: 61px;
    font-size: 32px;
    line-height: 45px;
    color: #fff;
    border-radius: 50%;
    background-color: var(--app-success);
}

#card-1 .issue-card {
    background-color: #f7dff5;
    color: #b22485;
}

#card-2 .confirm-identity {
    background-color: #d1e8ff;
    color: #2968a8;
}

#card-3 .verify-identity {
    background-color: #d6f8d6;
    color: #205c20;
}

.button-holder {
    display: flex;
    justify-content: center;
    justify-items: center;
    color: #000;
    margin: 25px 0 0 0;
}

.btn-no-action {
    border: 1px solid #b5b1b1;
    pointer-events: none;
    color: #b5b1b1;
    width: 100%;
    display: flex;
    justify-content: center;
}


.selfie-btn {
    width: 20rem;
    height: 3.0rem;
    background: #f8f9f9 0 0 no-repeat padding-box;
    border: 0.063rem solid #283150;
    border-radius: 0.313rem;
    opacity: 1;
    color: #283150;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.issue-btn {
    width: 14.2rem;
    height: 2.8rem;
    background: #f8f9f9 0 0 no-repeat padding-box;
    border: 0.063rem solid #283150;
    border-radius: 2.1rem;
    opacity: 1;
    color: #283150;
    font-size: 1.0rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    white-space: nowrap;
}

    .selfie-btn:hover, .issue-btn:hover {
        background: #5900ff;
        color: #ffffff;
    }

.issueButton-wrap {
    display: flex;
    justify-content: end;
}


/* Verified card */

.card-front:before {
    content: "";
    inset: 0;
    position: absolute;
    transform: translate3d(0, 0, 0.01px);
    background-size: 100% 100%, 80% 80%, 200% 200%;
    background-blend-mode: multiply, multiply, overlay;
    background-position: 50% 50%, 50% 50%, 50% 50%;
    mix-blend-mode: color-dodge;
    filter: brightness(2) contrast(0.8);
}

.card-front {
    position: relative;
    transform: translate3d(0, 0, 0.01px);
    width: 90vw;
    max-width: 335px;
    aspect-ratio: 4/2;
    border-radius: 3.5% 3.5% 3.5% 3.5% / 5% 5% 5% 5%;
    background-color: #5900ff;
    background-size: cover;
    /* box-shadow: 0 30px 40px -25px rgba(15, 5, 20, 1),
      0 20px 50px -15px rgba(15, 5, 20, 1); */
    overflow: hidden;
    animation: tilt var(--duration) ease infinite;
    /* margin: 20px 0 0 0; */

    margin: auto;
}

    .card-front:after {
        content: "";
        background: none, none, linear-gradient( 125deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 0.1%, rgba(255, 255, 255, 0) 60% );
        background-size: 200% 200%;
        mix-blend-mode: hard-light;
        animation: bg var(--duration) ease infinite;
    }

    .card-front * {
        font-family: "Ubuntu-Bold", monospace;
    }

.cardLogo,
.credentials,
.icon,
.name {
    color: #ccc;
    /*position: absolute;*/
    margin: 0;
    padding: 0;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    font-size: clamp(0.75rem, 2.8vw + 0.2rem, 0.1rem);
    inset: 5%;
    /* text-shadow: -1px -1px 0px rgba(255, 255, 255, 0.5),
      1px -1px 0px rgba(255, 255, 255, 0.5), 1px 1px 0px rgba(0, 0, 0, 0.5),
      1px -1px 0px rgba(0, 0, 0, 0.5); */
    z-index: 5;
}

/* .credentials {
    background-image: linear-gradient(to bottom, #ededed 20%, #bababa 70%), none,
      linear-gradient(
        120deg,
        transparent 10%,
        white 40%,
        white 60%,
        transparent 90%
      );
    background-size: cover, cover, 200%;
    background-position: 50% 50%;
    background-blend-mode: overlay;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    animation: bg var(--duration) ease infinite;
  } */

.name {
    top: auto;
}

.name {
    right: auto;
    max-width: 180px;
    line-height: 1.2;
    text-align: left;
}

.cardLogo {
    bottom: auto;
    right: auto;
    width: 30%;
    filter: invert(1) saturate(0) brightness(1) contrast(1.2);
    mix-blend-mode: screen;
}

.credentials {
    left: auto;
    bottom: auto;
    max-width: 250px;
    line-height: 1.2;
    text-align: left;
    margin: 11px 0 0 0;
}

@media (max-width: 767.98px) {
    .card-front {
        max-width: 270;
    }
}

/* end of verified card */


/* Qrcode style */

#qrcode {
    padding: 8px;
}

    #qrcode > img {
        margin: 0 auto;
        padding-top: 25px;
    }

.message-wrapper {
    justify-content: center;
    justify-items: center;
}

#pinCode {
    display: flex;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
}

.qrcodeContainer {
    display: flex;
    justify-content: center;
}

.border-custom {
    overflow: hidden;
    border: 3px solid #5900ff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    height: fit-content;
    width: 240px;
    height: 245px;
}

.outerWrapper:before, .outerWrapper:after, .innerWrapper:before, .innerWrapper:after {
    position: absolute;
    width: 50px;
    height: 50px;
    border-color: #0078AA;
    border-style: solid;
    content: ' ';
}

.outerWrapper {
    position: relative;
    width: 210px;
    height: 200px;
}

    .outerWrapper:before {
        top: 0;
        left: 0;
        border-width: 8px 0 0 8px;
        border-radius: 13px 0 0 0;
    }

    .outerWrapper:after {
        top: 0;
        right: 0;
        border-width: 8px 8px 0 0;
        border-radius: 0 13px 0 0;
    }

.innerWrapper {
    height: 100%;
    width: 100%;
}

    .innerWrapper:before {
        bottom: 0;
        right: 0;
        border-width: 0 8px 8px 0;
        border-radius: 0 0 13px 0;
    }

    .innerWrapper:after {
        bottom: 0;
        left: 0;
        border-width: 0 0 8px 8px;
        border-radius: 0 0 0 13px;
    }

/* #message {
    padding: 25px 0 0 0;
  } */

/* End of qrcode */


/*form styles*/
#msform {
    text-align: center;
    position: relative;
    margin-top: 30px;
}

#contactDetails {
    text-align: left;
}

#msform fieldset {
    background: white;
    border: 0 none;
    border-radius: 8px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    box-sizing: border-box;
    width: 80%;
    margin: 0 10%;
    /*stacking fieldsets above each other*/
    position: relative;
}

    /*Hide all except first fieldset*/
    #msform fieldset:not(:first-of-type) {
        display: none;
    }

/*inputs*/
#msform input, #msform textarea {
    padding: 15px;
    /*border: 1px solid #ccc;*/
    border-radius: 4px;
    margin-bottom: 10px;
    /*width: 100%;*/
    box-sizing: border-box;
    /*font-family: montserrat;*/
    color: #2C3E50;
    font-size: 15px;
}

    #msform input:focus, #msform textarea:focus {
        -moz-box-shadow: none !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        border: 1px solid #5900ff;
        outline-width: 0;
        transition: All 0.5s ease-in;
        -webkit-transition: All 0.5s ease-in;
        -moz-transition: All 0.5s ease-in;
        -o-transition: All 0.5s ease-in;
    }

/*buttons*/
#msform .action-button {
    width: 12.2rem;
    height: 2.8rem;
    background: #5900ff;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
    font-family: inherit;
}

    /* Custom disabled button styling */
    #msform .action-button:disabled,
    input[type="submit"]:disabled {
        background-color: #cccccc; /* Grey background */
        color: #666666; /* Grey text */
        border: 1px solid #999999; /* Grey border */
        cursor: not-allowed; /* Change cursor to indicate non-interactive */
        opacity: 0.6; /* Reduce opacity for a faded look */
    }

    #msform .action-button:hover, #msform .action-button:focus {
        box-shadow: 0 0 0 2px white, 0 0 0 3px #5900ff;
    }

#msform .action-button-previous {
    width: 12.2rem;
    height: 2.8rem;
    background: #aCbEd0;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
    font-family: inherit;
}

    #msform .action-button-previous:hover, #msform .action-button-previous:focus {
        box-shadow: 0 0 0 2px white, 0 0 0 3px #aCbEd0;
    }

/*headings*/
.fs-title {
    text-transform: uppercase;
    color: #2C3E50;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.fs-subtitle {
    font-weight: normal;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/*progressbar*/
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
}

    #progressbar li {
        list-style-type: none;
        color: #666;
        text-transform: uppercase;
        font-size: 1rem;
        width: 33.33%;
        float: left;
        position: relative;
        letter-spacing: 1px;
    }

        #progressbar li:before {
            content: counter(step);
            counter-increment: step;
            width: 60px;
            height: 60px;
            line-height: 60px;
            display: block;
            font-size: 25px;
            color: #333;
            background: #eee;
            border-radius: 30px;
            margin: 0 auto 10px auto;
        }

        /*progressbar connectors*/
        #progressbar li:after {
            content: '';
            width: 100%;
            height: 13px;
            background: #eee;
            position: absolute;
            left: -50%;
            top: 22px;
            z-index: -1; /*put it behind the numbers*/
        }

        #progressbar li:first-child:after {
            /*connector not needed before the first step*/
            content: none;
        }

        /*marking active/completed steps blue*/
        /*The number of the step and the connector before it = blue*/
        #progressbar li.active:before, #progressbar li.active:after {
            background: #5900ff;
            color: white;
        }

/* End of form styles*/


/* Style for the finaliziing modal */

/* Center the overlay background */
.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1050; /* High z-index for priority */
}

/* Overlay content styling */
.overlay-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
}

    .overlay-content .icon {
        font-size: 3rem;
        color: #28a745; /* Green success checkmark */
    }

    .overlay-content h2 {
        margin: 1rem 0;
        color: #28a745;
    }

    .overlay-content p {
        margin-bottom: 2rem;
        color: #6c757d;
    }

/* End of Style for the finaliziing modal */

#sendEmailBtn:disabled {
    cursor: not-allowed;
}

.banner {
    position: relative;
    background-image: url('https://rtiahst101sharedp.blob.core.windows.net/shared/images/pexels-alexander-suhorucov-6457562 (2).jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

/*.banner {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center calc(8% - 50px);
    color: white;
    margin: 0;
    min-height: 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: -20px;
}*/

.banner-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px; /* Adjust padding as needed */
    text-align: center;
    color: #fff; /* Ensure text is visible */
}

.banner h1,
.banner p {
    z-index: 1;
}

footer {
    font-family: inherit;
}

.footer-links h5 {
    color: #5900ff;
}

.footer-links a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

    .footer-links a:hover {
        text-decoration: underline;
        color: #5900ff;
    }

.footer-logo {
    width: 120px;
    height: auto; /* Maintain the aspect ratio */
    margin-bottom: 25px;
}

.footer-bottom {
    margin-top: 50px;
}

.separator {
    /* height: 2px; */
    border-top: 2px solid #5900ff;
    background-color: #5900ff;
    margin-top: 0;
    margin-bottom: 20px;
    width: 100%;
}

.footer-separator {
    margin-top: 150px;
}

ol.numbered-list {
    padding-left: 0;
    list-style: none;
    counter-reset: item;
    text-align: start;
}

.numbered-list li {
    color: #333333;
    padding: 10px 0 10px 50px;
    margin: 20px 0;
    position: relative;
    font-size: 16px;
    line-height: 20px;
}

    .numbered-list li:before {
        content: counter(item);
        counter-increment: item;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 30px;
        width: 30px;
        border-radius: 50%;
        border: 2px solid #38018d;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        background-color: #fff;
        color: #38018d;
        font-weight: bold;
    }

.requirements {
    margin-top: 10px;
    padding: 10px;
    border-left: 4px solid #38018d;
}

    .requirements ul {
        list-style-type: none;
        padding-left: 20px;
        background: none;
    }

    .requirements li:before {
        content: "• ";
        color: #38018d;
        font-weight: bold;
    }


#msform .issuedText {
    font-size: 1rem;
    margin-top: auto;
}

.progressbar {
    display: flex;
    justify-content: center;
}

.retrieverInfoSection {
    background: white;
    border: 0 none;
    border-radius: 8px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    box-sizing: border-box;
    height: 50%;
}

/* style for blurred overlay */

.image-container {
    width: auto;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent background */
    color: white;
}

.image-button-wrapper {
    display: inline-block;
    text-align: right;
    max-width: 100%;
}

    .image-button-wrapper img {
        width: 70%; /* Ensures the image fills the wrapper's width */
        height: auto; /* Maintains aspect ratio */
    }

    .image-button-wrapper .btn {
        width: 71%; /* Makes the button take the full width of the wrapper */
        max-width: none; /* Sets a maximum width for the button (adjust as needed) */
    }

@media (min-width: 768px) {
    .image-button-wrapper .btn {
        max-width: 200px; /* Removes the max-width on medium and larger screens */
    }
}



/* Animation fronpage */
.animate__zoomIn {
    animation-duration: 1s;
    animation-delay: 0.5s;
}


/* Add to your existing style section */
.email-notification-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.email-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .email-icon-wrapper i {
        font-size: 1.5rem;
        color: white;
    }

.email-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .email-actions a {
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .email-actions a:hover {
            text-decoration: underline;
            transform: translateX(2px);
        }



/* Selfie Modal Styles */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.qr-code-wrapper {
    position: relative;
}

.qr-code-container {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

    .qr-code-container:hover {
        border-color: var(--bs-primary);
        transform: scale(1.02);
    }

.step-card {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

    .step-card:hover {
        border-left-color: var(--bs-primary);
        background-color: rgba(102, 126, 234, 0.05) !important;
    }

#selfieImagePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#scanningOverlay {
    backdrop-filter: blur(5px);
}

.modal-header.bg-gradient-primary {
    padding: 1.5rem;
}

.badge.rounded-circle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}


/* Responsive OR Divider - Works perfectly on all screen sizes */
.or-divider-responsive {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

    .or-divider-responsive::before,
    .or-divider-responsive::after {
        content: '';
        position: absolute;
        height: 1px;
        background: linear-gradient(90deg, transparent, #dee2e6, #dee2e6, transparent);
        top: 50%;
        transform: translateY(-50%);
    }

.or-text {
    background: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Desktop view - horizontal layout */
@media (min-width: 768px) {
    .or-divider-responsive::before,
    .or-divider-responsive::after {
        width: calc(50% - 35px);
    }

    .or-divider-responsive::before {
        left: 0;
    }

    .or-divider-responsive::after {
        right: 0;
    }

    /* Vertical line style on desktop for variety */
    .or-divider-responsive {
        height: 100%;
        min-height: 50px;
    }
}

/* Mobile view - better spacing */
@media (max-width: 767px) {
    .or-divider-responsive {
        margin: 1.5rem 0;
    }

        .or-divider-responsive::before,
        .or-divider-responsive::after {
            width: calc(50% - 40px);
        }

        .or-divider-responsive::before {
            left: 0;
        }

        .or-divider-responsive::after {
            right: 0;
        }

    .or-text {
        padding: 0.5rem 1.25rem;
        font-size: 0.8125rem;
    }

    /* Make buttons full width on mobile */
    .kyc-section .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* Hover effect for the OR badge */
.or-text:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    transform: scale(1.05);
}

/* Optional: Add animation on page load */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.or-divider-responsive {
    animation: fadeInScale 0.5s ease-out 0.3s both;
}


/* KYC Error Container Styles */
.kyc-error-container {
    padding: 1rem;
}

.error-icon-wrapper {
    display: inline-block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Failed Checks List */
.failed-checks-container .list-group-item {
    border-left: 3px solid #dc3545;
    transition: all 0.3s ease;
}

    .failed-checks-container .list-group-item:hover {
        background-color: #f8f9fa;
        transform: translateX(5px);
    }

/* KYC Progress Messages */
.kyc-progress-message {
    display: none;
    text-align: center;
    padding: 2rem;
}

    .kyc-progress-message.active {
        display: block;
        animation: fadeIn 0.5s ease-in;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KYC Section States */
.kyc-section {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .kyc-section.verified {
        background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
        border-color: #28a745;
    }

    .kyc-section.error {
        background: linear-gradient(135deg, #f8d7da 0%, #ffffff 100%);
        border-color: #dc3545;
    }

    .kyc-section.processing {
        background: linear-gradient(135deg, #d1ecf1 0%, #ffffff 100%);
        border-color: #0dcaf0;
    }

/* Retry Button Animation */
.btn-retry-kyc {
    position: relative;
    overflow: hidden;
}

    .btn-retry-kyc::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-retry-kyc:hover::before {
        width: 300px;
        height: 300px;
    }

/* Modal Error State */
#kycModal .modal-body.error-state {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

/* Tips Alert Styling */
.alert-info.kyc-tips {
    border-left: 4px solid #0dcaf0;
    background: linear-gradient(90deg, #e7f5ff 0%, #ffffff 100%);
}

    .alert-info.kyc-tips ul {
        margin-bottom: 0;
        padding-left: 1.5rem;
    }

    .alert-info.kyc-tips li {
        margin-bottom: 0.25rem;
    }

/* Error Detail Cards */
.error-detail-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

    .error-detail-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .error-detail-card .icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #fff3cd;
        color: #856404;
    }

    .error-detail-card.critical .icon {
        background: #f8d7da;
        color: #721c24;
    }

/* Loading State for Retry */
.kyc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .kyc-loading-overlay .spinner-border {
        width: 3rem;
        height: 3rem;
    }


/* Validation error states for sections */
.kyc-section.validation-error,
.selfie-section.validation-error {
    background-color: #fff5f5 !important;
    transition: all 0.3s ease;
}

.kyc-section.border-danger,
.selfie-section.border-danger {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

/* Pulse animation for buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.pulse-animation {
    animation: pulse 1s infinite;
}

/* Terms checkbox validation styling */
.form-check.validation-error {
    background-color: #fff5f5 !important;
    transition: all 0.3s ease;
}

.form-check.border-danger {
    border-color: #dc3545 !important;
}

/* Invalid checkbox styling */
#termsAccepted.is-invalid {
    border-color: #dc3545;
}

    #termsAccepted.is-invalid:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }

/* Validation message styling inside sections */
.kyc-validation-message,
.selfie-validation-message {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced invalid feedback visibility */
.invalid-feedback.d-block {
    display: block !important;
}

/* Button error state */
.btn-selfie.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

    .btn-selfie.btn-danger:hover {
        background-color: #c82333;
        border-color: #bd2130;
        color: white;
    }

/* Smooth transitions for all validation states */
.kyc-section,
.selfie-section,
.form-check {
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Highlight effect for sections */
.validation-error {
    position: relative;
}

    /*.validation-error::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
        animation: highlight-bar 2s ease-in-out infinite;
    }*/

@keyframes highlight-bar {
    0%, 100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

/* Focus styles for better accessibility */
.validation-error:focus-within {
    outline: 2px dashed #dc3545;
    outline-offset: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .kyc-validation-message,
    .selfie-validation-message {
        font-size: 0.8rem;
    }

    .shake-animation {
        animation: shake 0.3s ease-in-out;
    }
}

.highlight-glow {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.6); /* A semi-transparent red glow */
    border-radius: 15px;
    transition: box-shadow 0.3s ease-in-out;
}


#termsContainer {
    position: relative;
}

    #termsContainer .form-check-input {
        /*margin: 0;*/
        margin-right: 0.5rem;
        position: relative;
        top: 1px; /* Fine-tune vertical alignment */
    }

    #termsContainer .form-check-label {
        margin: 0;
        line-height: 1.5;
    }

    #termsContainer .d-flex {
        align-items: center;
    }

    #termsContainer .invalid-feedback {
        display: none;
        margin-top: 0.25rem;
        margin-left: 1.5rem; /* Align with the label text */
    }

    #termsContainer.is-invalid .invalid-feedback {
        display: block;
    }