/* ==========================
   DIRECT-APPLY — Florida Business Funding
   ========================== */

/* ── PAGE LAYOUT ── */
.apply-section {
    padding: 80px 0 120px;
    background-color: #F4F0EC;
}

.apply-card {
    background-color: #123d48;
    border-radius: 12px;
    padding: 70px 60px;
    box-shadow: 0 4px 30px rgba(18, 61, 72, 0.18);
}

.apply-title {
    font-size: 75px;
    text-align: center;
    margin-bottom: 12px;
    color: #ffffff;
}

.apply-title .azure {
    color: #d6e1a5;
}

.apply-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 50px;
    font-size: 20px;
}

.honeypot-field {
    display: none;
}

/* ── STEP VISIBILITY ── */
.app-step {
    display: none;
}

.app-step.active {
    display: block;
}

/* ── GRID + ROWS ── */
.application-grid {
    max-width: 720px;
    margin: 0 auto;
}

.application-row {
    display: grid;
    gap: 15px;
    margin-bottom: 18px;
}

.application-row>* {
    min-width: 0;
}

.row-100 {
    grid-template-columns: 1fr;
}

.row-50-50 {
    grid-template-columns: 1fr 1fr;
}

.row-40-60 {
    grid-template-columns: 2fr 3fr;
}

.row-60-40 {
    grid-template-columns: 3fr 2fr;
}

.row-33-33-33 {
    grid-template-columns: 1fr 1fr 1fr;
}

.row-45-35-20 {
    grid-template-columns: 4.5fr 3.5fr 2fr;
}

.row-25-25-25-25 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.row-25-25-25-20 {
    grid-template-columns: 5fr 5fr 5fr 3.5fr;
}

/* ── INPUTS ── */
.application-row input[type="text"],
.application-row input[type="tel"],
.application-row input[type="email"],
.application-row input[type="date"],
.application-row select {
    box-sizing: border-box;
    padding: 16px 22px;
    border: 1px solid #d4d4d4;
    border-radius: 30px;
    font-family: 'General Sans';
    font-size: 17px;
    line-height: 1.1;
    background-color: #ffffff;
    color: #000;
    width: 100%;
}

.application-row input::placeholder {
    color: #888888;
    font-family: 'General Sans';
}

.application-row input:focus,
.application-row select:focus,
.application-row .dd-trigger:focus,
.application-row .dd-trigger:focus-visible {
    outline: none;
    border-color: #d6e1a5;
    box-shadow: 0 0 0 2px rgba(214, 225, 165, 0.35);
}

.application-row input.error,
.application-row select.error {
    border-color: #cc4b37;
}

/* ── FIELD GROUP (label above input) ── */
.field-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.field-label {
    font-family: 'General Sans';
    font-size: 15px;
    font-weight: 550;
    line-height: 1.2;
    margin-bottom: 6px;
    margin-left: 4px;
    color: #d6e1a5;
}

/* ── HEADINGS / INTRO ── */
.application-grid>h2 {
    font-family: 'Switzer Black';
    text-align: left;
    font-size: 42px;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #d6e1a5;
    margin-bottom: 8px;
}

.application-grid>p {
    font-family: 'General Sans';
    font-size: 18px;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
}

.app-step1-intro {
    font-family: 'General Sans';
    font-size: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* ── BUTTONS (uses .btn-primary from new-styles.css) ── */
.application-btn {
    display: block;
    margin: 30px auto 0;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.application-btn:hover {
    filter: brightness(0.95);
}

/* ── LINKS (GO BACK, Add Owner, Add Another) ── */
.go-back-link {
    display: inline-block;
    font-family: 'General Sans';
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #d6e1a5;
    padding: 0 0 25px;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.go-back-link:hover {
    opacity: 0.7;
}

.add-owner-link {
    display: block;
    font-family: 'General Sans';
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #d6e1a5;
    padding: 20px 0;
    text-decoration: underline;
    cursor: pointer;
}

.add-owner-link:hover {
    opacity: 0.7;
}

.add-another {
    display: block;
    font-family: 'General Sans';
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #d6e1a5;
    padding: 0 0 16px;
    text-decoration: underline;
    cursor: pointer;
}

.add-another:hover {
    opacity: 0.7;
}

.add-another.hide {
    display: none;
}

/* ── CONSENT ── */
.application-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'General Sans';
    font-size: 12.5px;
    text-align: justify;
    color: rgba(255, 255, 255, 0.78);
    margin: 25px 10px 16px;
    line-height: 1.5;
}

.application-consent a {
    color: #d6e1a5;
    font-weight: 600;
    text-decoration: underline;
}

.application-consent input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d6e1a5;
    flex-shrink: 0;
}

/* ── CUSTOM DROPDOWN ── */
.custom-dropdown {
    position: relative;
    min-width: 0;
}

.dd-trigger {
    box-sizing: border-box;
    padding: 16px 38px 16px 22px;
    border: 1px solid #d4d4d4;
    border-radius: 30px;
    font-family: 'General Sans';
    font-size: 17px;
    line-height: 1.1;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23123d48' stroke-width='2' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 10px 7px;
    display: flex;
    align-items: center;
    min-height: 52px;
}

.dd-trigger.error {
    border-color: #cc4b37;
}

.dd-trigger.open {
    border-color: #d6e1a5;
}

.dd-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 14px rgba(18, 61, 72, 0.10);
}

.dd-panel.open {
    display: block;
}

.dd-option {
    padding: 12px 22px;
    font-family: 'General Sans';
    font-size: 17px;
    color: #000;
    cursor: pointer;
}

.dd-option:hover {
    background: #F4F0EC;
}

.dd-option.selected {
    background: #d6e1a5;
    color: #123d48;
    font-weight: 600;
}

/* ── CURRENCY + PERCENT WRAPPERS ── */
.currency-input-wrap {
    position: relative;
    min-width: 0;
}

.currency-input-wrap .currency-sign {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'General Sans';
    font-size: 17px;
    color: #888;
    pointer-events: none;
    z-index: 1;
}

.currency-input-wrap input {
    padding-left: 36px !important;
}

.percent-input-wrap {
    position: relative;
    min-width: 0;
}

.percent-input-wrap .percent-sign {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'General Sans';
    font-size: 17px;
    color: #888;
    pointer-events: none;
    z-index: 1;
}

.percent-input-wrap input {
    padding-right: 36px !important;
}

/* ── DEBT SHEET ── */
.business-debt-sheet {
    display: none;
    padding: 25px 0 10px;
}

.business-debt-sheet.show {
    display: block;
}

.debt-sheet-header {
    margin-bottom: 3px !important;
}

.debt-sheet-header .field-label {
    margin-bottom: 0;
}

.debt-row {
    position: relative;
}

.debt-remove-btn {
    position: absolute;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: none;
    border: none;
    color: #cc4b37;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.debt-remove-btn:hover {
    opacity: 1;
}

#debtRows .debt-row:only-child .debt-remove-btn {
    display: none;
}

.debt-calculation-row {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    padding: 12px 0;
}

.debt-calculation-row p {
    font-family: 'General Sans';
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.calculation {
    font-family: 'Switzer Bold';
    font-size: 18px;
    letter-spacing: -0.02em;
    color: #d6e1a5;
}

/* ── OWNER BLOCK SEPARATOR ── */
.owner-block+.owner-block {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(214, 225, 165, 0.25);
}

/* ── UPLOAD BOXES ── */
.upload-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.upload-label {
    font-family: 'General Sans';
    font-size: 15px;
    font-weight: 550;
    color: #d6e1a5;
    margin-left: 4px;
}

.upload-label.extra-docs-label {
    margin-top: 30px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-align: center;
}

.upload-minimal {
    display: block;
    width: 100%;
    cursor: pointer;
}

.upload-box {
    background: #F4F0EC;
    border: 1px dashed #c8c4bf;
    border-radius: 12px;
    padding: 16px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'General Sans';
    font-size: 14.5px;
    color: #6E6A6F;
    transition: all 0.2s ease;
}

.upload-box-wide {
    max-width: 587px;
    margin: 0 auto 35px;
}

.upload-icon {
    width: 15px;
    height: 15px;
    stroke-width: 2;
    color: #6E6A6F;
}

.upload-minimal:hover .upload-box {
    background: #eae4dc;
    color: #123d48;
    border-color: #d6e1a5;
}

.upload-box.has-file {
    color: #123d48;
    background: #d6e1a5;
    border-color: #d6e1a5;
    border-style: solid;
}

.upload-box.error {
    background: #fbeae6;
    color: #cc4b37;
    border-color: #cc4b37;
}

.additional-docs-wrap {
    display: none;
    margin-bottom: 20px;
}

.additional-docs-wrap.show {
    display: block;
}

/* ── SUBMIT DISCLAIMER ── */
.submit-disclaimer {
    font-family: 'General Sans';
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-align: justify;
    line-height: 1.5;
    margin-top: 40px;
    margin-bottom: 20px;
}

.submit-disclaimer a {
    color: #d6e1a5;
    font-weight: 600;
    text-decoration: underline;
}

/* ── THANK YOU ── */
.app-thank-you-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.app-thank-you-page h2 {
    font-family: 'Switzer Black';
    text-align: center;
    font-size: 60px;
    letter-spacing: -0.04em;
    color: #d6e1a5;
    margin-bottom: 20px;
}

.app-thank-you-page p {
    font-family: 'General Sans';
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 30px;
}

.app-thank-you-page .thank-lead {
    font-size: 22px;
    color: #d6e1a5;
    font-weight: 550;
    margin-bottom: 40px;
}

.app-thank-you-page a {
    font-weight: 600;
    color: #d6e1a5;
    text-decoration: underline;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    .apply-section {
        padding: 60px 0px;
    }

    .apply-card {
        padding: 40px 25px;
    }

    .apply-title {
        font-size: 42px;
    }

    .application-grid>h2 {
        font-size: 32px;
    }

    .application-row {
        grid-template-columns: 1fr !important;
    }

    .debt-calculation-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .debt-remove-btn {
        right: -4px;
        top: 8px;
        transform: none;
    }
}