@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

* {
    font-family: "DM Sans", "Roobert TRIAL", sans-serif;
    font-size: 18px;
}

.hero-section {
    background-image: url("../images/government-grants-bg.png");
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 30px 20px 25px 20px;
    position: relative;
}

.hero-section h1 {
    font-size: 55px;
    font-weight: bold;
    line-height: 1.2;
    width: 100% !important;
    padding: 20px;
    /* border-radius: 5px 5px 0 0; */
}
#fomo {
    display: flex;
    position: fixed;
    z-index: 99999;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 95%;
    font-size: 14px;
    animation: slideUp 0.5s ease forwards; /* Thêm hiệu ứng */
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    bottom: 10px; /* Đẩy phần tử xuống 70% */
    left: 50%;
    transform: translate(-50%, 50%); /* Bắt đầu từ dưới (ẩn) */
}

/* Keyframes cho hiệu ứng */
@keyframes slideUp {
    0% {
        transform: translate(-50%, 100%); /* Bắt đầu từ dưới */
        opacity: 0; /* Ẩn */
    }
    100% {
        transform: translate(-50%, -50%); /* Về vị trí giữa */
        opacity: 1; /* Hiện */
    }
}

#fomo .product_image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

#fomo .wrapper {
    display: flex;
    flex-direction: column;
}

#fomo .buyer {
    line-height: 1.4;
}

#fomo .user_name {
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

#fomo .location {
    color: #555;
    font-size: 15px;
}

#fomo .Boked .loanAmount {
    color: green;
    font-weight: bold;
    font-size: 15px;
}

#fomo .time {
    margin-top: 0px;
    font-size: 12px;
    color: #555;
    font-size: 15px;
}

#fomo .time img {
    width: 15px;
    border-radius: 50%;
    filter: hue-rotate(352deg) saturate(150%) brightness(120%);
    position: relative;
    top: 2px;
    margin-left: 8px;
}

#fomo .time .number {
    font-weight: bold;
    font-size: 15px;
}

#fomo .time .type {
    color: #555;
    font-size: 15px;
}

#fomo .time span:last-child {
    color: #00a8ff;
    font-size: 15px;
    margin-left: 5px;
    margin-top: 4px;
    font-size: 15px;
}

.hero-section p {
    font-size: 20px !important;
    margin-bottom: 0px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 26.44px;
    text-align: center;
    margin-top: 18px !important;
}

.benefit-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge-item {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 5px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-item i {
    color: #28a745;
    font-size: 1.3rem;
}

.btn-cta {
    background-color: #d8232a;
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 30px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
}

.btn-cta:hover {
    background-color: #a11b1f;
}

.review-section {
    margin-top: 20px;
    color: #fff;
    font-size: 1rem;
}

.email-contact {
    background: #1d3ac6;
    /* border-radius: 0px 0px 4px 4px; */
    padding: 5px;
    position: fixed;
    z-index: 10000;
    width: 100%;
}

.review-section img {
    width: 120px;
    margin-top: 10px;
}

.custom-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.feature-button {
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 1rem;
}

.feature-button img {
    width: 24px;
    height: 24px;
}

.feature-button span {
    color: #333;
}

.trustpilot-rating p {
    margin: 0;
    font-size: 1rem;
}
.card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-inner {
    /* padding: 20px 80px; */
}

.slide-fake .carousel-inner {
    padding: unset;
}

.star-background {
    display: flex;
    gap: 5px;
}

.star-off-full {
    background: linear-gradient(to right, #00b67b 0%, #ccc 0%) !important;
}

.star-off-half {
    background: linear-gradient(to right, #00b67b 50%, #ccc 50%) !important;
}

.star-off-two-thirds {
    background: linear-gradient(to right, #00b67b 66%, #ccc 66%) !important;
}

.star-icon img {
    width: 20px;
    height: 20px;
}
.btn-danger {
    background-color: #d60c1a;
    border: none;
    padding: 12px 24px;
    font-weight: 400 !important;
    border-radius: 8px;
}

.btn-danger:hover {
    background-color: #b80a17;
}

.btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0;
}

.btn-success {
    color: #fff;
}

.star-background {
    justify-items: center;
    justify-content: center;
}

.star-background .star-icon {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00b67b;
}

.star-background .star-icon img {
    max-width: 60%;
    max-height: 60%;
}

.star-background .star-icon:nth-child(5n) {
    background: linear-gradient(to right, #00b67b 80%, #ccc 80%);
}

.custom-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.hero-section h1 {
    width: 69%;
}

#verified-successes {
    width: 80%;
    margin: 0 auto;
}
/* Đảm bảo hình ảnh trong slider được căn chỉnh đẹp */
.carousel-inner img {
    max-height: 600px;
    object-fit: cover;
    cursor: pointer;
}

.carousel-inner img.rounded-circle.mr-3 {
    max-height: 100px;
    max-width: 100px;
}

#verifiedSuccessSlider {
    padding: 20px;
}

/* Hình ảnh trong layout gốc không bị méo */
.verified-success-image {
    max-width: 100%;
    height: auto;
}

#grants-assistance-programs .card {
    padding: 11px 12px 11px 12px;
    border-radius: 0%;
    background: radial-gradient(
        circle,
        rgb(245 245 245) 76%,
        rgb(217 216 216) 100%
    );
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#grants-assistance-programs .card .card-text,
#step .card .card-text,
.progress-bar-container span:not(:has(input[type="checkbox"])) {
    color: #050b20;
    font-size: 17px;
    font-weight: 400;
    line-height: 23px;
    margin: 10px 0;
}

#grants-assistance-programs .card h1,
#step .card h1 {
    font-weight: bold;
    font-size: 80px;
    color: #1344b5;
}

#grants-assistance-programs .card h5,
#step .card h5 {
    font-size: 25px;
    font-weight: 700;
    line-height: 33.44px;
}

.custom-footer {
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 10px; */
}

.custom-footer a.btn {
    background: linear-gradient(90deg, #009642 0%, #22bb66 100%);
    color: white;
    font-weight: 500;
    /* width: 70%; */
    font-size: 16px;
    line-height: 15px;
}

#proud-to-be-recognized-for-our-service {
    background-color: #eef2fa;
    padding: 70px;
}

#proud-to-be-recognized-for-our-service img {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}
#proud-to-be-recognized-for-our-service img:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

#step {
    padding: 120px 0;
}

#step .custom-footer a.btn {
    background: linear-gradient(90deg, #009642 0%, #22bb66 100%);
    font-weight: 400;
    width: 15%;
    font-size: 16px;
    font-weight: 500;
}

#step .card {
    border-radius: 0;
}

#success-stories {
    background-color: #f1f2f5;
    padding: 60px 0;
}

#success-stories .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#success-stories .card-header {
    background-color: #fff;
    padding: 1rem;
}

#success-stories .card-body {
    padding: 1.5rem;
}

#success-stories .card-footer {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.title {
    /* width: 50%; */
    /* transform: translateY(30%); */
}

.review {
    background-color: #ffffff;
    padding: 16px 24px;
    /* width: 540px; */
    width: 60%;
    border-radius: 5px;
}

.progress-bar-container {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    justify-content: space-around;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-container:hover input[type="checkbox"],
.checkbox-container {
    cursor: pointer;
}
.checkbox-container:hover .progress-fill-5-star {
    background-color: #009855;
}
.checkbox-container:hover .progress-fill-4-star {
    background-color: #73cf11;
}
.checkbox-container:hover .progress-fill-3-star {
    background-color: #ffce00;
}
.checkbox-container:hover .progress-fill-2-star {
    background-color: #ff8622;
}
.checkbox-container:hover .progress-fill-1-star {
    background-color: #ff3722;
}

.checkbox-container input[type="checkbox"] {
    margin: 0;
}

.checkbox-container
    input[type="checkbox"]:checked
    ~ .progress-bar
    .progress-fill-5-star {
    background-color: #009855;
}
.checkbox-container
    input[type="checkbox"]:checked
    ~ .progress-bar
    .progress-fill-4-star {
    background-color: #73cf11;
}
.checkbox-container
    input[type="checkbox"]:checked
    ~ .progress-bar
    .progress-fill-3-star {
    background-color: #ffce00;
}
.checkbox-container
    input[type="checkbox"]:checked
    ~ .progress-bar
    .progress-fill-2-star {
    background-color: #ff8622;
}
.checkbox-container
    input[type="checkbox"]:checked
    ~ .progress-bar
    .progress-fill-1-star {
    background-color: #ff3722;
}

.progress-bar {
    width: 75%;
    height: 10px;
    background-color: #d3d3d3;
    /* Màu nền xám */
    border-radius: 5px;
    position: relative;
    margin-left: 20px;
}

.progress-fill {
    height: 100%;
    background-color: #000;
    /* Màu của thanh đo (màu đen) */
    border-radius: 5px;
}

.checkbox-container
    input[type="checkbox"]:checked
    + .progress-bar
    .progress-fill {
    background-color: #2196f3;
    /* Thay đổi màu khi checkbox được chọn (có thể là màu khác) */
}

#success-stories .card {
    min-height: 100%;
    border-radius: 0;
}

#FAQ .box {
    box-shadow: 0 0 4px 6px rgba(0, 0, 0, 0.03);
    padding: 64px 95px;
}

.accordion-item {
    border-bottom: 1px solid #dee2e6;
}

.accordion-button,
.accordion-body {
    color: #050b20;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    outline: none;
    box-shadow: none;
    font-size: 22px;
}

.accordion-button::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
    color: #1344b5;
}

.accordion-button.collapsed::after {
    content: "+";
}

.accordion-button:not(.collapsed) {
    content: "-";
    color: #1344b5;
    background-color: unset;
    box-shadow: unset;
}

.accordion-button::after {
    display: none;
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#footer {
    background-color: #eef5ff;
    padding: 24px 10px;
}

.custom-footer {
    text-align: center;
    width: 100%;
}

#success-stories .slides {
    display: flex;
    cursor: grab;
    user-select: none;
    transform: translateX(0);
    /* Xóa translateX(-100%) */
    transition: transform 0.5s ease;
    /* Thêm transition mặc định */
}

#success-stories .slides:active {
    cursor: grabbing;
}

#success-stories .card {
    width: 100%;
    flex-shrink: 0;
    pointer-events: none;
}

#verified-successes .row {
    min-height: 400px;
    height: 100%;
}

#verified-successes .row > * {
    /* padding: 0 !important; */
}

#verified-successes .col-12 {
    height: 100%;
}

.verified-success-image {
    /* display: block;
    max-width: 100%; */
}

#proud-to-be-recognized-for-our-service p {
    width: 60%;
}

.verified-success-image {
    max-width: 100%;
    height: auto;
    width: 500px;
}

.verified-success-image-3 {
    max-width: 100%;
    height: auto;
}

#step > div {
    padding: 0 95px;
}

#success-stories > div {
    /* padding: 0 78px; */
}

.slide-fake {
    display: none;
}

.slide-main {
    display: block;
}

/* Hiệu ứng rung khi hover */
@keyframes shake {
  0% { transform: translateX(0); }
  10% { transform: translateX(-4px); }
  20% { transform: translateX(4px); }
  30% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  50% { transform: translateX(0); }
  100% { transform: translateX(0); }
}

.auto-shake {
  animation: shake 3s ease-in-out infinite;
}
#responsive-button:hover {
    background: linear-gradient(90deg, #01bd53 0, rgb(76, 187, 126) 100%) !important;
    animation: shake 0.5s ease-in-out;
}
.btn-hover-shake {
    animation: shake 3s infinite;
}
.btn-testi:hover {
    background: linear-gradient(#22a159, #11ad57) !important;
}

.custom-footer a.btn:hover {
    background: linear-gradient(90deg, #14914a 0%, #1b7443 100%) !important;
}

.fixed-button {
    position: fixed;
    bottom: 0;
    right: 0;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    z-index: 9999;
    width: auto;
    margin: 0 auto;
    padding: 15px;
    border-radius: 0px !important;
    display: none;
}
.header-btn {
    background-color: rgba(183, 183, 183, 0.43);
}

.header-btn:hover {
    background-color: rgba(223, 221, 221, 0.43);
}

.section-container {
    width: 100%;
	position: relative;
	z-index: 1;
}

.avatar-container {
    position: relative;
    margin-top: 20px;
}

.avatar-row {
    position: relative;
    z-index: 2; /* Avatar nổi trên đường kẻ */
}

.avatar {
    border: 2px solid #10d351;
    width: 40px;
    height: 40px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    margin: -3px;
}
.avatar:hover {
    box-shadow: 3px 2px 5px rgb(0 182 123);
    cursor: pointer;
}

.divider {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dbd6d6;
    z-index: 1; /* Đường kẻ nằm dưới avatar */
    margin: 0 auto;
}

@media (max-width: 320px) {
    .hero-section {
        padding: 5px;
    }
}
@media (max-width: 660px) {
    .hero-section {
        padding: 0;
    }
    .hero-section h1 {
        width: 100% !important;
        font-size: 25px !important;
        background: #fff;
        padding: 15px;
    }

    .hero-section p {
        padding: 0px 0px;
        font-size: 18px !important;
        font-weight: bold;
    }

    .progress-bar {
        width: 45%;
    }

    .verified-success-image {
        max-width: 50%;
        padding: 10px;
        margin-bottom: 0 !important;
    }

    #verified-successes {
        width: 90%;
    }

    .header-btn {
        padding: 5px 10px;
        background-color: transparent;
    }

    .btn-full-width {
        width: 100%;
        border-radius: 4px;
    }

    #responsive-content ul li,
    #responsive-content ul li > strong {
        font-size: 14px !important;
    }

    #verifiedSuccessSlider {
        padding: 10px;
    }

    #footer-bottom {
        margin-bottom: 55px;
    }

    #fomo .buyer {
        line-height: 1.2;
    }

    #fomo .product_image {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .title {
        width: 100%;
        /* margin-bottom: 50px; */
    }

    .hero-section h1 {
        font-size: 55px;
    }

    .review {
        width: 100% !important;
        font-weight: bold;
        border-radius: 10px;
    }
    .carousel-inner {
        padding: 20px 40px;
        /* height: 580px; */
    }

    button[data-bs-slide] {
        /* display: none; */
    }
    #step .custom-footer a.btn {
        width: 100%;
    }

    .list-logo div img {
        width: 100%;
    }

    #proud-to-be-recognized-for-our-service h2 {
        font-size: 30px !important;
        margin-bottom: 40px !important;
    }

    #verified-successes .verified-success-image-3 {
        margin-right: 0px !important;
        width: 90% !important;
    }

    #verified-successes {
        width: 88%;
    }

    #FAQ .toggle-icon {
        /* display: none; */
    }

    #footer .container .w-75 {
        width: 100% !important;
    }

    #grants-assistance-programs {
        margin: 60px 0 !important;
    }
    #grants-assistance-programs .card {
        padding: 20px 10px 20px 10px !important;
    }

    #grants-assistance-programs .card h5,
    #step .card h5 {
        font-size: 25px;
        margin-bottom: 14px;
    }

    #grants-assistance-programs .card .card-text {
        font-size: 16px;
        line-height: 25px;
        margin-bottom: 12px;
    }

    #step {
        padding: 30px 0;
    }

    #step > div > h2 {
        font-size: 30px !important;
    }

    #step .card h1 {
        font-size: 60px;
    }

    #success-stories h2 {
        font-size: 25px !important;
        margin-bottom: 20px;
    }

    .title {
        padding: 0;
    }

    .fixed-button{
        display: inline-block;
    }

    .hero-section h1{
        background: #fff;
    }
}

@media (max-width: 992px) {
    #proud-to-be-recognized-for-our-service {
        padding: 20px 10px;
    }

    #proud-to-be-recognized-for-our-service .w-50 {
        width: 100% !important;
    }

    #step > div > h2 {
        width: 100% !important;
        font-size: 35px;
        margin: 30px 0px !important;
    }

    #step .custom-footer a.btn {
        width: unset;
    }

    #success-stories .card {
        height: 560px;
    }

    #prevButton,
    #nextButton {
        left: -3% !important;
    }

    #proud-to-be-recognized-for-our-service p {
        width: 100%;
        font-size: 16px !important;
    }

    #step > div {
        padding: 0 20px;
    }

    #success-stories > div {
        padding: 0 10px;
    }

    .img-center > div {
        padding: 20px;
    }

    #step .custom-footer a.btn {
        width: unset !important;
    }

    .slide-fake {
        display: block;
    }

    .slide-fake .card {
        width: 100% !important;
    }

    .slide-main {
        display: none;
    }

    #FAQ > div {
        padding: 40px 0px !important;
    }

    #FAQ .box {
        padding: 20px !important;
    }

    #success-stories {
        padding: 35px 0;
        margin: 40px 0px;
    }
    #success-stories h2 {
        font-size: 35px;
    }
}

@media (max-width: 1024px) {
    .title {
        transform: unset;
        text-align: center;
        width: 100%;
    }
    .hero-section h1 {
        width: 100%;
    }
    #grants-assistance-programs .row {
        padding: 0 !important;
    }
    .review {
        width: 97%;
        margin: 0 auto;
    }
    .carousel-inner {
        padding: 0;
    }
    #step .container h2 {
        /* width: 77% !important; */
    }

    #prevButton {
        top: unset !important;
        bottom: -50px;
        left: 44% !important;
        padding: 4px 14px !important;
    }

    #nextButton {
        top: unset !important;
        bottom: -50px;
        padding: 4px 14px !important;
        right: 44% !important;
    }

    .custom-footer a.btn {
        padding: 10px;
    }

    .verified-success-image-3 {
        width: 50% !important;
    }

    .img-center {
        display: block !important;
    }

    .img-center > img {
        margin-bottom: 20px;
    }

    #grants-assistance-programs .card-body {
        padding: unset !important;
    }

    #grants-assistance-programs .card {
        padding: 10px 10px 10px 10px;
        border-radius: 0%;
    }

    #step .custom-footer a.btn {
        width: 20%;
    }

    #success-stories .card {
        width: 30%;
        flex-shrink: 0;
        pointer-events: none;
    }
}



/* Congratulations Dialog Styles */
.congratulations-dialog {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.congratulations-header {
    color: #16a34a;
    text-align: center;
    padding: 30px 20px;
}

.congratulations-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.congratulations-subtitle {
    font-size: 32px;
    margin: 0;
    font-weight: 700;
    opacity: 0.95;
}

.congratulations-dialog .modal-body {
    background: white;
    padding: 40px 30px;
}

.warning-title {
    color: #dc2626;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline;
}

.warning-subtitle {
    color: #374151;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.warning-note {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 25px;
}

.congratulations-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.congratulations-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: white;
}

.free-notice {
    color: #9ca3af;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .congratulations-dialog {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .congratulations-title, .congratulations-subtitle {
        font-size: 28px;
    }
    
    .congratulations-header {
        padding: 25px 15px;
    }
    
    .congratulations-dialog .modal-body {
        padding: 30px 20px;
    }
}

@media (max-width: 500px) {
    .congratulations-title, .congratulations-subtitle {
        font-size: 24px;
    }

    .warning-title {
        font-size: 20px;
    }

    .warning-subtitle {
        font-size: 14px;
    }

    .warning-note {
        font-size: 12px;
    }

    .congratulations-btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .free-notice {
        font-size: 12px;
    }

    #sub-headline-sm {
        padding: 0px 20px;
    }
}

@media (max-width: 375px) {
    .congratulations-title, .congratulations-subtitle {
        font-size: 22px;
    }

    .warning-title {
        font-size: 18px;
    }

    .warning-subtitle {
        font-size: 12px;
    }

    .warning-note {
        font-size: 10px;
    }

    .congratulations-btn {
        font-size: 12px;
        padding: 10px 15px;
    }

    .free-notice {
        font-size: 10px;
    }
}