/* ============================================================
   R&D Credit Estimator – Front-End Styles
   ============================================================ */

.rdce-form-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    box-shadow: 0 4px 28px rgba(0,0,0,.08);
    font-family: inherit;
}

/* ── Header ── */
.rdce-label-top {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 6px;
}

.rdce-heading-title {
    font-size: 28px;
    font-weight: 700;
    color: #C9A84C;
    margin: 0 0 24px;
    line-height: 1.2;
}

/* ── Field groups ── */
.rdce-field-group {
    margin-bottom: 18px;
}

.rdce-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.rdce-label-hint {
    font-weight: 400;
    color: #888;
    font-size: 12px;
}

/* ── Controls ── */
.rdce-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d8d8d8;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.rdce-control:focus {
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

/* ── Select ── */
.rdce-select-wrap {
    position: relative;
}

.rdce-select {
    cursor: pointer;
    padding-right: 36px;
}

.rdce-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555;
    font-size: 16px;
}

/* ── Payroll prefix input ── */
.rdce-input-prefix-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d8d8d8;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .2s;
}

.rdce-input-prefix-wrap:focus-within {
    border-color: #C9A84C;
    box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

.rdce-prefix {
    padding: 10px 10px 10px 14px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    background: #f7f7f7;
    border-right: 1.5px solid #d8d8d8;
    user-select: none;
}

.rdce-payroll-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* ── Range sliders ── */
.rdce-slider {
    width: 100%;
    margin-top: 10px;
    accent-color: #C9A84C;
    cursor: pointer;
    height: 4px;
}

/* ── % display ── */
.rdce-pct-display {
    float: right;
    font-weight: 700;
    color: #C9A84C;
    font-size: 14px;
}

/* ── Estimate box ── */
.rdce-estimate-box {
    background: #f8f6f0;
    border: 1.5px solid #e8e0cc;
    border-radius: 8px;
    padding: 20px 18px 16px;
    text-align: center;
    margin: 8px 0 22px;
}

.rdce-estimate-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #666;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.rdce-estimate-amount {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 8px;
}

.rdce-estimate-note {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ── Divider ── */
.rdce-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 18px;
}

.rdce-divider::before,
.rdce-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.rdce-divider span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #555;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ── Row / columns ── */
.rdce-row {
    display: flex;
    gap: 14px;
}

.rdce-col {
    flex: 1;
}

/* ── Privacy note ── */
.rdce-privacy-note {
    font-size: 12px;
    color: #555;
    margin: 4px 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rdce-check-icon {
    color: #4CAF50;
    font-size: 15px;
    font-weight: 700;
}

/* ── Error ── */
.rdce-error-msg {
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ── Submit button ── */
.rdce-btn {
	display: block;
    width: 100% !important;
    padding: 15px 20px;
    background: #C9A84C !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border: none !important;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .03em;
    transition: background .2s, transform .1s;
    margin-bottom: 14px;
}

.rdce-btn:hover  { background: #b8963e; }
.rdce-btn:active { transform: scale(.98); }

.rdce-btn.rdce-loading {
    opacity: .75;
    cursor: not-allowed;
}

/* ── Disclaimer ── */
.rdce-disclaimer {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.rdce-lock-icon {
    font-size: 13px;
    flex-shrink: 0;
}

/* ── Thank You card ── */
.rdce-thankyou-card {
    max-width: 520px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px 40px;
    box-shadow: 0 6px 40px rgba(0,0,0,.10);
    text-align: center;
}

.rdce-ty-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.rdce-thankyou-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.rdce-ty-sub {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px;
}

.rdce-ty-credit {
    background: #f8f6f0;
    border: 1.5px solid #e8e0cc;
    border-radius: 10px;
    padding: 22px 20px;
    margin-bottom: 20px;
}

.rdce-ty-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rdce-ty-amount {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.rdce-ty-note {
    font-size: 12px;
    color: #888;
}

.rdce-ty-details {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.rdce-ty-footer {
    font-size: 13px;
    color: #555;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .rdce-form-wrap { padding: 24px 16px 20px; }
    .rdce-row       { flex-direction: column; gap: 0; }
    .rdce-heading-title { font-size: 22px; }
    .rdce-estimate-amount { font-size: 24px; }
}
