/* Invest Now form (form.php and invest.php): light-background form + project summary */

.invest-section { background: var(--cream-50); }
.invest-layout { display: grid; grid-template-columns: 1.45fr .85fr; gap: clamp(24px, 4vw, 44px); align-items: start; }

.invest-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.invest-card .title { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: .2em; }
.invest-card .title span { color: var(--forest-800); }

/* Light-background fields */
.light-form .form-grid { gap: 4px 22px; margin-top: 18px; }
.light-form .field label { color: var(--ink-900); font-size: 14.5px; margin: 16px 0 6px; }
.light-form .field input, .light-form .field select {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--ink-900);
    background: var(--white);
    border: 1px solid #d7ddd2;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color .25s, box-shadow .25s;
}
.light-form .field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308421b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.light-form .field input::placeholder { color: #98a096; }
.light-form .field input:focus, .light-form .field select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(78, 138, 19, .14); }
.light-form .field input:disabled { background: var(--sage-50); color: var(--forest-800); font-weight: 600; cursor: not-allowed; }
.light-form .col-form-label-sm { color: var(--forest-700) !important; }

.checkout-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 22px; margin-top: 22px; padding-top: 22px; border-top: 1px dashed #d7ddd2; }
.checkout-row .amount-field { flex: 1 1 220px; }
.checkout-row .amount-field input:disabled { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--green-600); letter-spacing: -0.02em; padding: 10px 14px; }
.checkout-row .btn { padding: 16px 28px; font-size: 17px; }

/* Summary sidebar */
.invest-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.summary .media { aspect-ratio: 1; margin: 10px 10px 0; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; background: var(--sage-50); }
.summary .media img { width: 100%; height: 100%; object-fit: cover; }
.summary-body { padding: 18px 22px 22px; }
.summary .kicker { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-500); margin-bottom: 4px; }
.summary h3 { font-size: 24px; color: var(--forest-800); margin-bottom: 4px; }
.summary .unit { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--green-600); letter-spacing: -0.02em; }

.mini-steps { background: var(--forest-900); color: rgba(255, 255, 255, .85); border-radius: var(--radius-lg); padding: 24px 24px 20px; }
.mini-steps h3 { color: #fff; font-size: 20px; margin-bottom: 14px; }
.mini-steps ol { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.mini-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.mini-steps li::before { content: counter(s, decimal-leading-zero); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--lime-400); color: var(--forest-900); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 11.5px; }
.mini-steps .insured { display: flex; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; font-style: italic; }
.mini-steps .insured svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--lime-400); }

@media (max-width: 960px) {
    .invest-layout { grid-template-columns: 1fr; }
    .invest-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .invest-aside { grid-template-columns: 1fr; }
    .light-form .form-grid { grid-template-columns: 1fr; }
    .checkout-row .form-submit { flex: 1 1 100%; }
    .checkout-row .btn { width: 100%; justify-content: center; }
}

/* Toast (replaces toastr) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 12px; background: #8a3b2c; color: #fff; font-size: 15px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
