﻿/* Loan request (LoanRequest.aspx) — mirrors the look of copac.com.uy/prestamos/solicitar */

.loan-page {
    --brand-cream: #f4e9e2;
    --brand-cream-soft: #f8f1ec;
    --brand-gold: #fbc733;
    --brand-green: #259f4d;
    --brand-green-bright: #34b25e;
    --brand-green-dark: #006d38;
    --brand-green-text: #1c7a3b;
    --brand-ink: #131313;
    --brand-slate: #3d4a3f;
    --brand-border: rgba(61, 74, 63, 0.4);

    background: var(--brand-cream-soft);
    color: var(--brand-ink);
    font-family: "Momo Trust Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
    padding: 24px 16px 64px;
}

.loan-container { max-width: 1080px; margin: 0 auto; }

.loan-muted { color: var(--brand-slate); }
.loan-small { font-size: 13px; }

/* Headings */
.loan-heading {
    font-family: "Momo Trust Display", "Momo Trust Sans", "Inter", sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--brand-ink);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.loan-heading-center { justify-content: center; text-align: center; }
.loan-heading-lg { font-size: 40px; margin-top: 64px; }

/* Breadcrumbs + product */
.loan-breadcrumbs { font-size: 14px; color: var(--brand-slate); margin-bottom: 24px; }
.loan-breadcrumbs a { color: var(--brand-slate); }
.loan-breadcrumbs span { color: var(--brand-green-text); font-weight: 600; }
.loan-product { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.loan-product-img { width: 88px; height: 88px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; }
.loan-product-caption { font-size: 14px; color: var(--brand-slate); }
.loan-product-name { font-family: "Momo Trust Display", "Momo Trust Sans", sans-serif; font-weight: 800; font-size: 22px; }
.loan-product-price { font-weight: 700; font-size: 18px; color: var(--brand-green-text); margin-top: 2px; }

/* Cards */
.loan-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(61, 74, 63, 0.08);
}

/* Gold pill button with arrow bubble */
.loan-btn-gold, .loan-btn-gold:hover, .loan-btn-gold:focus {
    display: inline-flex; align-items: center;
    background: var(--brand-gold); color: var(--brand-ink);
    font-family: "Momo Trust Display", "Momo Trust Sans", sans-serif; font-weight: 800; font-size: 17px;
    border: none; border-radius: 100px; padding: 0 0 0 36px; height: 50px;
    text-decoration: none; cursor: pointer;
}
.loan-btn-gold:hover { filter: brightness(0.96); }
.loan-btn-gold:disabled { opacity: 0.6; cursor: wait; }
.loan-btn-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; margin-left: 20px; border-radius: 50%;
    background: var(--brand-gold); box-shadow: -6px 0 0 -2px var(--brand-gold);
    position: relative; left: 4px;
}
.loan-btn-arrow .material-symbols-outlined { font-size: 22px; font-weight: 700; }
.loan-icon-circle {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--brand-green); color: #fff;
}
.loan-icon-circle-lg { width: 72px; height: 72px; }
.loan-icon-circle-lg .material-symbols-outlined { font-size: 40px; }

/* Form */
.loan-step-caption { text-align: center; color: var(--brand-slate); font-size: 14px; margin: 8px 0 32px; }
.loan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.loan-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.loan-required { color: var(--brand-green); }
.loan-input {
    display: block; width: 100%; height: 46px;
    border: 1px solid var(--brand-border); border-radius: 100px; background: #fff;
    padding: 12px 16px; font-size: 14px; color: var(--brand-ink); font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.loan-input::placeholder { color: rgba(61, 74, 63, 0.75); }
.loan-input:focus { outline: none; border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(37, 159, 77, 0.2); }
.loan-input.invalid { border-color: #c0392b; }
.loan-select {
    -webkit-appearance: none; appearance: none; padding-top: 0; padding-bottom: 0; padding-right: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233d4a3f' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.loan-input-icon { position: relative; }
.loan-input-icon .loan-input { padding-right: 44px; }
.loan-date-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: none; border-radius: 50%; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; color: var(--brand-slate); cursor: pointer;
}
.loan-date-btn:hover { background: var(--brand-cream-soft); color: var(--brand-green); }
.loan-date-btn .material-symbols-outlined { font-size: 20px; }
/* Native date input kept invisible under the calendar button so its picker opens there */
.loan-date-native { position: absolute; right: 6px; bottom: 0; width: 36px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.loan-field-error { color: #c0392b; font-size: 12px; margin-top: 6px; display: none; }

/* Round checkbox (like copac.com.uy) */
.loan-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; margin-top: 20px; font-weight: 400; }
.loan-check input[type=checkbox] {
    -webkit-appearance: none; appearance: none; flex-shrink: 0;
    width: 20px; height: 20px; margin: 1px 0 0; border-radius: 50%;
    border: 1px solid var(--brand-border); background: #fff; cursor: pointer; position: relative;
}
.loan-check input[type=checkbox]:checked { background: var(--brand-green); border-color: var(--brand-green); }
.loan-check input[type=checkbox]:checked::after {
    content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.loan-check a { color: var(--brand-green-text); font-weight: 700; text-decoration: underline; }

.loan-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; }

.loan-alert { display: block; background: #fdecea; color: #a5281b; border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; font-weight: 600; }
.loan-success { text-align: center; }

/* Mobile */
@media (max-width: 767px) {
    .loan-grid { grid-template-columns: 1fr; }
    .loan-card { padding: 24px 20px; }
    .loan-heading-lg { font-size: 30px; }
}
