/* Plan My Tax — Figma design on Gold Loan class patterns (self-contained) */

body.pmt-layout-page {
    font-family: Inter, sans-serif;
    margin: 0;
    color: #111928;
    background: #f3f4f6;
}

/* Logged-in (prefilled mobile or post OTP): no hamburger — nav stays on desktop for MV */
body.pmt-layout-page.pmt-logged-in .menuicon,
body.pmt-layout-page.pmt-logged-in .hf-menuicon {
    display: none !important;
}

body.pmt-layout-page.pmt-logged-in .postloginbtn,
body.pmt-layout-page.pmt-logged-in #postloginbtn {
    cursor: pointer;
}

/* Post OTP verify — logo + profile only (hide nav categories) */
body.pmt-layout-page.pmt-post-verification .hf-categories,
body.pmt-layout-page.pmt-post-verification .categories {
    display: none !important;
}

@media screen and (max-width: 767px) {
    body.pmt-layout-page.pmt-logged-in .logo img,
    body.pmt-layout-page.pmt-logged-in .indialendslogo {
        margin-left: 0 !important;
    }
}

/* Clear fixed .hf header (~56px) + Figma gap below nav (Gold Loan formcontainer pattern) */
main.pmt-main {
    padding-top: 100px;
    padding-bottom: 48px;
}

/* Journey card */
.pmt-journey-wrap {
    background: transparent;
    padding: 0 0 48px;
}

.pmt-journey-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(17, 25, 40, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.pmt-left-col {
    padding: 0;
}

.pmt-right-col {
    padding: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Left banner (Figma) */
.pmt-banner-container {
    background-color: #e8f5ff;
    background-image: 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 stroke='%23b3d9f7' stroke-width='0.5'%3E%3Cpath d='M0 30L30 0l30 30-30 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 24px 24px;
    min-height: 100%;
    padding: 40px 32px 48px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.pmt-banner-hero-wrap {
    margin-bottom: 24px;
    width: 100%;
    text-align: center;
}

.pmt-banner-hero {
    max-width: 220px;
    height: auto;
}

.pmt-banner-heading {
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
    color: #111928;
    margin-bottom: 28px;
    max-width: 100%;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.pmt-banner-heading-line {
    display: block;
    width: 100%;
}

.pmt-powered-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 0;
    text-align: left;
    font-size: inherit;
    line-height: inherit;
    font-weight: 600;
}

.pmt-powered-mark {
    height: 24px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.pmt-powered-text {
    color: #111928;
    line-height: inherit;
    font-weight: 400;
    font-size: 22px;
    margin-bottom: -10px;
}

.pmt-feature-list {
    text-align: left;
    max-width: 340px;
    width: 100%;
}

.pmt-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 22px;
    color: #374151;
    margin-bottom: 16px;
}

.pmt-feature-icon-img {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: block;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 25, 40, 0.08);
    border-radius: 50%;
    object-fit: contain;
}

/* Progress bar */
.pmt-progress-bar {
    height: 4px;
    width: 100%;
    background: #e5e7eb;
    flex-shrink: 0;
}

.pmt-progress-fill {
    height: 100%;
    background: #1976d2;
    transition: width 0.3s ease;
}

.pmt-form-panel {
    padding: 32px 40px 40px;
    flex: 1;
    text-align: left;
}

.pmt-form-content {
    max-width: 400px;
    width: 100%;
    text-align: left;
}

.pmt-phone-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.pmt-otp-success {
    font-size: 13px;
    line-height: 20px;
    color: #16a34a;
    font-weight: 500;
    margin: 4px 0 8px;
}

.pmt-resend-timer,
.pmt-resend-timer .para2 {
    color: #6b7280;
}

/* Typography (Gold Loan patterns) */
.homepageheading1,
.pmt-form-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: #111928;
    text-align: left;
}

.formheading {
    font-size: 24px;
    line-height: 32px;
    color: #111928;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: left;
}

.formpara {
    font-size: 13px;
    line-height: 22px;
    color: #1f2a37;
    font-weight: 400;
    margin-bottom: 28px;
}

.para2 {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 0;
    font-weight: 400;
}

.commonblue {
    color: #1976d2;
}

.verifyotp {
    font-size: 24px;
    line-height: 28px;
    color: #111928;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: left;
}

/* Input group — Figma notched floating labels */
.inputgroup {
    position: relative;
    margin-bottom: 20px;
}

.inputgroup input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    transition: 0.2s;
    height: 48px;
    color: #111928;
    background-color: #fff;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: left;
}

.inputgroup input:not(:placeholder-shown) ~ label,
.inputgroup input:focus ~ label,
.inputgroup label {
    top: -9px;
    left: 10px;
    font-size: 12px;
}

.inputgroup input:disabled {
    background-color: #f3f4f6;
    color: #111928;
    cursor: not-allowed;
    border-color: #ccc;
}

.inputgroup label {
    position: absolute;
    line-height: 18px;
    color: #6b7280;
    transition: 0.2s;
    pointer-events: none;
    margin-bottom: 0;
    padding: 0 6px;
    background-color: #fff;
    font-weight: 400;
    border-radius: 4px;
}

.inputgroup input:focus {
    border-color: #1976d2;
    outline: 0;
}

.inputgroup input:focus::placeholder {
    color: transparent;
}

.inputgroup input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-size: 16px;
}

.mobilenoisdcode {
    font-weight: 500;
    position: absolute;
    left: 14px;
    top: 12px;
    font-size: 16px;
    line-height: 24px;
    display: none;
}

.mobileisd .mobilenoisdcode {
    display: block;
}

.mobileisd.inputgroup input {
    padding-left: 52px;
}

.v-t,
.supportingtext {
    margin-bottom: 0;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.errorvalidationspan {
    font-size: 12px;
    color: #e02424;
    font-weight: 400;
}

.bg-whiteweb {
    background-color: #fff !important;
}

/* Buttons — blue Figma theme */
.commonbtn,
.formsubmitbtn,
.pmt-commonbtn {
    width: 100%;
    background-color: #1976d2;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: center;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    outline: 0;
    border: none;
    text-decoration: none !important;
    cursor: pointer;
}

.commonbtn:hover,
.formsubmitbtn:hover,
.pmt-commonbtn:hover {
    background-color: #1565c0;
    color: #fff !important;
    text-decoration: none !important;
}

.commonbtn:disabled,
.formsubmitbtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.commonbtn.unactivecontinuebtn,
.pmt-commonbtn.unactivecontinuebtn {
    background-color: #d1d5db !important;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
}

.commonbtn.unactivecontinuebtn:hover,
.pmt-commonbtn.unactivecontinuebtn:hover {
    background-color: #d1d5db !important;
}

/* OTP */
.otp-input-container {
    display: flex;
    flex-wrap: wrap;
}

.gl-otp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 16px;
    margin-bottom: 8px;
}

.otp-input-container input,
.otp-input-container .otp {
    width: 44px;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-right: 12px;
    background-color: transparent;
    margin-top: 12px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.otp-input-container input:focus,
.otp-input-container .otp:focus {
    border-color: #1976d2;
    outline: none;
}

.gl-otp-msg {
    font-size: 12px;
    min-height: 18px;
    color: #e02424;
}

.resendsection {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 360px;
}

.whatsappotp {
    color: #4b5563 !important;
    font-size: 12px;
    line-height: 16px;
    border-bottom: 1px solid #1976d2;
    font-weight: 400;
    text-decoration: none !important;
}

.ResendLINK {
    color: #1976d2 !important;
    font-size: 14px;
    font-weight: 500;
}

.tnc {
    background: #e6f0ff;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    color: #1f2a37;
    line-height: 18px;
    font-size: 12px;
    font-weight: 400;
}

.tnc a {
    color: #1976d2;
}

.tnc.bg-transparent {
    background: transparent !important;
    padding: 0;
    border-radius: 0;
    text-align: left;
}

.pmt-otp-consent {
    margin-top: 16px;
    margin-bottom: 0;
    max-width: 100%;
    color: #1f2a37;
    line-height: 18px;
    font-size: 12px;
}

/* Consent modals */
.modalbottomnew .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.ll-modal-header.bg-grey {
    background: #f3f4f6;
}

.mobilebottomsheetline {
    display: block;
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto 12px;
}

/* Loader (Gold Loan) */
@keyframes gl-lds-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gl-lds-ring {
    display: flex;
    position: relative;
    width: 100%;
    height: 40px;
    justify-content: center;
}

.gl-lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 40px;
    height: 40px;
    margin: 4px;
    border: 4px solid #1976d2;
    border-radius: 50%;
    animation: gl-lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #1976d2 transparent transparent transparent;
}

.gl-lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.gl-lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.gl-lds-ring div:nth-child(3) { animation-delay: -0.15s; }

/* Gender */
.pmt-gender-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #111928;
    display: block;
    text-align: left;
    margin-bottom: 8px;
}

.pmt-gender-group {
    text-align: left;
    margin-top: 4px;
    margin-bottom: 0;
}

.pmt-gender-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pmt-gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #111928;
    transition: border-color 0.2s, background 0.2s;
}

.pmt-gender-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #1976d2;
}

.pmt-gender-option span {
    line-height: 20px;
}

.pmt-gender-option:has(input:checked) {
    border-color: #1976d2;
    background: #e8f5ff;
}

.pmt-input-error {
    border-color: #dc2626 !important;
}

.pmt-gender-options.pmt-field-error .pmt-gender-option {
    border-color: #dc2626;
}

/* Submit overlay */
.pmt-submit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 25, 40, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmt-submit-spinner {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pmt-submit-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.text-primary {
    color: #1976d2 !important;
}

/* Responsive — mweb: full-viewport form, fixed bottom CTA (Figma) */
@media (max-width: 991px) {
    body.pmt-layout-page {
        background: #fff;
    }

    main.pmt-main {
        --pmt-mweb-header-offset: 72px;
        padding-top: var(--pmt-mweb-header-offset);
        padding-bottom: 0;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .pmt-journey-wrap {
        min-height: calc(100vh - var(--pmt-mweb-header-offset));
        min-height: calc(100dvh - var(--pmt-mweb-header-offset));
        padding: 0;
    }

    .pmt-journey-wrap > .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .pmt-journey-card {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        min-height: calc(100vh - var(--pmt-mweb-header-offset));
        min-height: calc(100dvh - var(--pmt-mweb-header-offset));
    }

    .pmt-left-col {
        display: none !important;
    }

    .pmt-banner-container {
        padding: 32px 24px;
        min-height: auto;
    }

    .pmt-form-panel {
        padding: 20px 16px 0;
    }

    .pmt-form-content {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Compact field stack — no Bootstrap mt-4 + inputgroup margin doubling */
    .pmt-form-panel .inputgroup.mt-4,
    .pmt-form-panel .pmt-gender-group.mt-4 {
        margin-top: 0 !important;
    }

    .pmt-form-panel .formheading {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 20px;
    }

    .pmt-form-panel .inputgroup {
        margin-bottom: 16px;
    }

    .pmt-form-panel .pmt-gender-group {
        margin-bottom: 0;
        margin-top: 4px;
    }

    .pmt-form-panel .pmt-gender-options {
        margin-top: 0;
    }

    .pmt-form-title,
    .homepageheading1 {
        font-size: 22px;
        line-height: 30px;
    }

    .pmt-form-title.mt-3,
    .homepageheading1.mt-3 {
        margin-top: 0 !important;
    }

    .pmt-form-panel .inputgroup.mobileisd.mt-4 {
        margin-top: 20px !important;
    }

    /* Fixed bottom action bar */
    .pmt-mweb-bottom-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
        background: #fff;
        box-sizing: border-box;
    }

    .pmt-mweb-bottom-actions .commonbtn,
    .pmt-mweb-bottom-actions .pmt-commonbtn,
    .pmt-mweb-bottom-actions .formsubmitbtn {
        margin: 0;
        width: 100%;
    }

    #pmt-mobile-otp .pmt-otp-consent {
        margin-top: 20px;
    }

    /* Reserve space so fields never sit under the fixed bar */
    .pmt-form-panel {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 992px) {
    .pmt-banner-container {
        padding: 48px 48px 48px 56px;
    }

    .pmt-banner-heading {
        font-size: 24px;
        line-height: 32px;
        max-width: 100%;
    }

    .pmt-powered-mark {
        height: 26px;
    }

    .pmt-banner-heading-line,
    .pmt-powered-line {
        white-space: nowrap;
    }

    .pmt-banner-hero-wrap {
        max-width: 360px;
    }

    .pmt-feature-list {
        max-width: 360px;
    }

    .pmt-form-panel {
        padding: 40px 48px 48px 48px;
    }

    /* Left-aligned form block in right panel (Figma) */
    .pmt-form-content {
        max-width: 420px;
        margin-left: 0;
        margin-right: auto;
    }

    .pmt-form-content .formheading {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 32px;
    }

    .pmt-gender-group {
        margin-top: 4px;
    }

    .pmt-mweb-bottom-actions {
        position: static;
        padding: 0;
        background: transparent;
        margin-top: 40px;
    }

    .pmt-mweb-bottom-actions .formsubmitbtn,
    .pmt-mweb-bottom-actions .pmt-commonbtn,
    .pmt-mweb-bottom-actions .commonbtn {
        margin: 0;
    }

    .pmt-phone-row,
    .otp-input-container,
    .resendsection,
    .pmt-form-panel .para2,
    .pmt-form-panel .v-t {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .otp-input-container input,
    .otp-input-container .otp {
        width: 40px;
        height: 44px;
        margin-right: 8px;
    }

    .pmt-banner-heading {
        font-size: 18px;
        line-height: 28px;
    }
}
