/* styles/responsive.css */
@media (max-width: 768px) {

    .define-cta-btn,
    .faq-section-subtitle {
        width: 100%;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 426px) {

    /* Base spacing adjustments */
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    /* Header adjustments for mobile */
    .nav-container {
        height: 70px;
    }

    .logo-img {
        height: 26px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        border-top: 1px solid var(--color-border);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero section stacked and centered */
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 40px;
        line-height: 1.2;
        letter-spacing: -1.5px;
        margin-bottom: 20px;
    }

    .hero-title-serif {
        display: block;
        width: max-content;
        margin: 0 auto;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 8px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }

    /* Features Grid (How it works) */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px;
    }

    /* Benefits section mobile styling */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-content {
        padding-right: 0;
    }

    .section-title {
        font-size: 28px;
    }

    .benefits-visual {
        padding: 20px;
    }

    /* Modal Mobile Adjustments */
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .wizard-header {
        padding: 20px;
    }

    .wizard-body {
        padding: 20px;
        flex-grow: 1;
        overflow-y: auto;
    }

    .wizard-footer {
        padding: 20px;
        background-color: #FFFFFF;
        border-top: 1px solid var(--color-border);
    }

    .modal-close {
        top: 14px;
        right: 14px;
    }

    /* --- Trust & Calculator Section Mobile Adaptations --- */
    .trust-main-title {
        display: none;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 50px;
    }

    .trust-card-wrapper {
        background-color: #FFFFFF;
        border-radius: 28px;
        padding: 24px 16px 20px 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        aspect-ratio: 0.58 / 1;
        justify-content: flex-start;
        height: 240px;
        width: 167px;
    }

    .title-card-wrapper {
        display: flex;
        background-color: #000000;
        border-radius: 28px;
        padding: 24px 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
        justify-content: center;
        align-items: center;

    }

    .trust-card {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        border: none;
        width: 100%;
        aspect-ratio: 0.77 / 1;
        max-width: 110px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trust-card.title-card {
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .trust-mobile-title {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.2;
        color: #FFFFFF;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .trust-mobile-title .highlight-orange {
        color: #FF5E00;
    }

    .trust-mobile-title .logo-white {
        height: 22px;
        width: auto;
        margin-top: 8px;
        display: block;
    }

    .trust-card-text {
        font-size: 13.5px;
        font-weight: 600;
        line-height: 1.35;
        color: #0B0F19;
        margin-top: auto;
        margin-left: 0;
        padding: 0 4px;
        text-align: center;
    }

    .trust-icon-wrapper {
        width: 125px;
    }

    .trust-img-icon {
        width: 125px;
        border-radius: 50%;
        height: 125px;
        object-fit: cover;
    }

    /* Trust grid ordering to match design */
    .trust-grid> :nth-child(1) {
        order: 1;
    }

    .trust-grid> :nth-child(2) {
        order: 2;
    }

    .trust-grid> :nth-child(3) {
        order: 3;
    }

    .trust-grid> :nth-child(5) {
        order: 4;
    }

    .trust-grid> :nth-child(4) {
        order: 5;
    }

    .trust-grid> :nth-child(6) {
        order: 6;
    }

    .calc-card {
        grid-template-columns: 1fr;
        padding: 30px 16px;
        border-radius: 24px;
        gap: 30px;
    }

    .calc-title {
        font-size: 26px;
        text-align: center;
        margin-bottom: 24px;
    }

    .calc-toggle-container {
        display: flex;
        width: 100%;
        margin-bottom: 30px;
    }

    .calc-toggle-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 13px;
        text-align: center;
    }

    .calc-text-input {
        font-size: 28px;
    }

    .input-suffix {
        font-size: 24px;
    }

    .calc-control-group {
        margin-bottom: 24px;
    }

    .calc-result-badge-card {
        padding: 20px;
        border-radius: 16px;
        margin-top: 24px;
    }

    .calc-result-value {
        font-size: 32px;
    }

    .pl-results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    .pl-result-card {
        padding: 16px 20px;
        border-radius: 16px;
    }

    .pl-card-label {
        min-height: auto;
        margin-bottom: 6px;
    }

    .pl-card-val {
        font-size: 24px;
    }

    .calc-phone-col {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .calc-phone-img {
        max-width: 280px;
    }

    /* --- Suitability Section Mobile Adaptations --- */
    .suitability-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .suitability-image-col {
        order: -1;
    }

    .suitability-image-wrapper {
        padding: 30px 20px;
        border-radius: 28px;
        max-width: 100%;
    }

    .suitability-img {
        max-height: 360px;
    }

    .suitability-content-col {
        padding-left: 0;
    }

    .suitability-title {
        font-size: 32px;
        text-align: center;
        margin-bottom: 16px;
        letter-spacing: -1px;
    }

    .suitability-subtitle {
        font-size: 18px;
        text-align: center;
        margin-bottom: 24px;
    }

    .suitability-list {
        gap: 16px;
        margin-bottom: 30px;
    }

    .suitability-item {
        font-size: 15px;
    }

    .suitability-footer {
        font-size: 18px;
        text-align: center;
    }

    /* --- Lending Partners Mobile --- */
    .partners-section {
        padding: 50px 0;
    }

    .partners-title {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .partners-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        justify-items: center;
    }

    .partner-logo {
        width: 100%;
        max-width: 160px;
        background-color: #ffffff;
        border: 1px solid var(--color-border);
        border-radius: 16px;
        padding: 12px 16px;
        height: 70px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        opacity: 1;
        filter: grayscale(0%);
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* --- How Payoff Helps You Mobile --- */
    .helps-section {
        padding: 60px 0;
    }

    .helps-subtitle {
        font-size: 14px;
        margin-top: 10px;
    }

    .helps-cards-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        margin-top: 30px;
        padding: 10px 4px 20px 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .helps-cards-container::-webkit-scrollbar {
        display: none;
    }

    .helps-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
        padding: 30px 24px;
        border-radius: 20px;
    }

    .helps-icon-box {
        margin-bottom: 20px;
    }

    /* --- Why Choose Mobile --- */
    .why-choose-section {
        padding: 60px 0;
    }

    .why-choose-banner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 32px 24px;
        gap: 24px;
        margin-bottom: 40px;
        border-radius: 24px;
    }

    .why-choose-banner-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    .why-choose-text {
        font-size: 20px;
        font-weight: 800;
        line-height: 1.1;
        color: #FFFFFF;
        max-width: 90px;
        display: inline-block;
        text-align: left;
    }

    .why-choose-arrow {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: #00C853;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .why-choose-logo {
        height: 24px;
        width: auto;
        display: block;
        flex-shrink: 0;
    }

    .why-choose-banner-right {
        text-align: left;
        font-size: 14.5px;
        line-height: 1.45;
        color: #9CA3AF;
        max-width: 100%;
    }

    .why-choose-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-choose-card {
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 24px;
    }

    .why-choose-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 12px;
    }

    .why-choose-img-icon {
        height: 28px;
        max-width: 28px;
        margin-top: 0;
    }

    .why-choose-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 0;
    }

    .why-choose-desc {
        font-size: 14.5px;
        line-height: 1.5;
        color: var(--color-text-muted);
    }

    /* --- Testimonials Mobile --- */
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .testimonial-card {
        width: 290px;
        padding: 24px;
        border-radius: 20px;
    }

    .testimonial-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .testimonial-name {
        font-size: 13px;
    }

    .testimonial-role {
        font-size: 11px;
    }

    /* --- FAQ Mobile --- */
    .faq-section {
        padding: 60px 0;
    }

    .faq-section-title {
        font-size: 28px;
        margin-bottom: 10px;
        letter-spacing: -1px;
    }

    .faq-section-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .faq-header {
        padding: 20px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px 20px 20px;
        font-size: 14px;
    }

    /* --- Debt Doesn't Define You Mobile --- */
    .define-section {
        padding: 60px 0;
    }

    .define-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .define-content-card {
        padding: 30px 24px;
    }

    .define-title {
        font-size: 32px;
        margin-bottom: 30px;
        letter-spacing: -1px;
    }

    .define-list {
        gap: 16px;
        margin-bottom: 30px;
    }

    .define-item-text {
        font-size: 14px;
    }

    .define-highlight-card {
        padding: 20px;
    }

    .define-highlight-text {
        font-size: 14px;
    }

    .define-image-card {
        max-height: 360px;
    }

    .define-img {
        max-height: 360px;
    }

    .define-cta-container {
        margin-top: 40px;
    }

    .define-cta-lead {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* --- Footer Mobile --- */
    .footer {
        padding: 60px 0 40px 0;
    }

    .footer-watermark {
        font-size: 28vw;
        bottom: 120px;
        right: -30px;
        opacity: 0.8;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-info-col {
        grid-column: span 2;
    }

    .footer-social-col {
        grid-column: span 2;
    }

    .footer-social-grid {
        grid-template-columns: repeat(6, 40px);
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding-top: 24px;
    }

    .footer-bottom-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
        justify-items: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Target specific positions to match mockup layout */
    .footer-bottom-links a:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }

    .footer-bottom-links a:nth-child(2) {
        grid-column: span 2;
        grid-row: 2;
        justify-self: center;
    }

    .footer-bottom-links a:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    .footer-copyright {
        text-align: center;
        line-height: 1.6;
        font-size: 12px;
        color: #6B7280;
    }

    .suitability-image-wrapper,
    .calc-toggle-btn,
    .faq-section-subtitle {
        width: 100%;
    }

    .main-heading {
        width: 290px;
    }

    .suitability-img {
        max-height: 330px;
    }

}

@media (max-width: 320px) {
    .trust-card-wrapper {
        width: 100%;
    }


    .suitability-img,
    .faq-section-subtitle,
    .main-heading {
        width: 100%;
    }

}