/* /propuesta-de-renta/ — multi-step Fluent Forms form inside a rounded brand card. */

body.tii-renta-propuesta {
    background-color: var(--color-brand-gray, #f6f6f6);
}

.tii-renta-propuesta .fluentform {
    max-width: 52rem;
    margin-inline: auto;
    padding: 1.5rem 1.25rem 2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 6px solid var(--color-brand-green, #6ad517);
    border-radius: 1.5rem;
    box-shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .tii-renta-propuesta .fluentform {
        padding: 2.5rem 3rem 3rem;
    }
}

/* Progress */
.tii-renta-propuesta .ff-el-progress-status {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-brand-black, #0c0c0c);
}

.tii-renta-propuesta .ff-el-progress {
    height: 0.75rem;
    margin-bottom: 2rem;
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 9999px;
}

.tii-renta-propuesta .ff-el-progress-bar {
    height: 100%;
    background-color: var(--color-brand-green, #6ad517);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.tii-renta-propuesta .ff-el-progress-bar span {
    display: none;
}

/* Section headings inside a step */
.tii-renta-propuesta .ff-el-section-break {
    margin: 0.5rem 0 1.25rem;
}

.tii-renta-propuesta .ff-el-section-break .ff-el-section-title {
    margin: 0 0 0.25rem;
    padding-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-bottom: 2px solid var(--color-brand-yellow, #fcd021);
    display: inline-block;
}

.tii-renta-propuesta .ff-el-section-break div[class*='ff-section_break_desk'] {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #555;
}

.tii-renta-propuesta .ff-el-section-break hr {
    display: none;
}

/* Fields */
.tii-renta-propuesta .ff-el-group {
    margin-bottom: 1.25rem;
}

.tii-renta-propuesta .ff-el-input--label label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-brand-black, #0c0c0c);
}

.tii-renta-propuesta .ff-el-is-required.asterisk-right label::after {
    color: #e0314b;
}

.tii-renta-propuesta input.ff-el-form-control,
.tii-renta-propuesta textarea.ff-el-form-control,
.tii-renta-propuesta select.ff-el-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5rem;
    background-color: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.tii-renta-propuesta input.ff-el-form-control:focus,
.tii-renta-propuesta textarea.ff-el-form-control:focus,
.tii-renta-propuesta select.ff-el-form-control:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--color-brand-green, #6ad517);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-green, #6ad517) 30%, transparent);
}

/* Radios / checkboxes as selectable chips */
.tii-renta-propuesta .ff-el-form-check {
    display: inline-block;
    margin: 0 0.5rem 0.5rem 0;
}

.tii-renta-propuesta .ff-el-form-check label.ff-el-form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    cursor: pointer;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 9999px;
    transition: border-color 0.15s, background-color 0.15s;
}

.tii-renta-propuesta .ff-el-form-check label.ff-el-form-check-label:hover {
    border-color: var(--color-brand-green, #6ad517);
}

.tii-renta-propuesta .ff-el-form-check.ff_item_selected label.ff-el-form-check-label,
.tii-renta-propuesta .ff-el-form-check label.ff-el-form-check-label:has(input:checked) {
    background: color-mix(in srgb, var(--color-brand-green, #6ad517) 18%, #fff);
    border-color: var(--color-brand-green, #6ad517);
    font-weight: 500;
}

.tii-renta-propuesta .ff-el-form-check input[type='radio'],
.tii-renta-propuesta .ff-el-form-check input[type='checkbox'] {
    margin: 0;
    accent-color: var(--color-brand-green-dark, #57ac12);
}

/* Buttons */
.tii-renta-propuesta .step-nav {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tii-renta-propuesta .step-nav:has(> :only-child) {
    justify-content: flex-start;
}

.tii-renta-propuesta .step-nav button,
.tii-renta-propuesta button.ff-btn-submit {
    float: none !important;
    margin: 0 !important;
    padding: 0.8rem 2rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.25rem !important;
    cursor: pointer;
    border-radius: 9999px !important;
    transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.tii-renta-propuesta button.ff-btn-next,
.tii-renta-propuesta button.ff-btn-submit {
    color: #000 !important;
    background-color: var(--color-brand-green, #6ad517) !important;
    border: 2px solid var(--color-brand-green, #6ad517) !important;
}

.tii-renta-propuesta button.ff-btn-next:hover,
.tii-renta-propuesta button.ff-btn-next:focus,
.tii-renta-propuesta button.ff-btn-submit:hover,
.tii-renta-propuesta button.ff-btn-submit:focus {
    color: #000 !important;
    background-color: var(--color-brand-green-dark, #57ac12) !important;
    border-color: var(--color-brand-green-dark, #57ac12) !important;
    box-shadow: 0 8px 18px -8px rgba(87, 172, 18, 0.7);
    transform: translateY(-1px);
}

.tii-renta-propuesta button.ff-btn-prev {
    color: var(--color-brand-black, #0c0c0c) !important;
    background-color: transparent !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
}

.tii-renta-propuesta button.ff-btn-prev:hover,
.tii-renta-propuesta button.ff-btn-prev:focus {
    color: var(--color-brand-black, #0c0c0c) !important;
    background-color: #f1f1f1 !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
}

/* Last step: "Anterior" on the left, submit on the right */
.tii-renta-propuesta .ff-step-t-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tii-renta-propuesta .ff-step-t-container .ff-t-cell {
    width: auto;
    padding: 0;
}

.tii-renta-propuesta .ff-step-t-container .ff-el-group {
    margin: 0;
}

.tii-renta-propuesta .ff-message-success {
    padding: 1.25rem 1.5rem;
    font-weight: 500;
    background: color-mix(in srgb, var(--color-brand-green, #6ad517) 15%, #fff);
    border: 1px solid var(--color-brand-green, #6ad517);
    border-radius: 1rem;
    box-shadow: none;
}

@media (max-width: 480px) {
    .tii-renta-propuesta .step-nav button,
    .tii-renta-propuesta button.ff-btn-submit {
        padding: 0.8rem 1.25rem !important;
    }
}
