/* ============================================================
   FORMULARIO PROPIETARIOS – Frontend Styles
   ============================================================ */

:root {
    --fp-teal:        #55C0BA;
    --fp-teal-dark:   #3da9a3;
    --fp-red:         #F16A64;
    --fp-red-dark:    #d9534f;
    --fp-white:       #ffffff;
    --fp-black:       #1a1a1a;
    --fp-gray-bg:     #f7f8fa;
    --fp-gray-border: #e2e6ea;
    --fp-gray-text:   #6c757d;
    --fp-radius:      12px;
    --fp-shadow:      0 4px 24px rgba(0,0,0,0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body.fp-body {
    margin: 0;
    padding: 0;
    background: var(--fp-gray-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: var(--fp-black);
    -webkit-font-smoothing: antialiased;
}

.fp-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */

.fp-header {
    background: linear-gradient(135deg, #55C0BA 0%, #3da9a3 100%);
    color: var(--fp-white);
    padding: 40px 20px 0;
    text-align: center;
    position: relative;
}

.fp-header-inner {
    padding-bottom: 32px;
    position: relative;
    z-index: 1;
}

.fp-anchor {
    width: 48px;
    height: 48px;
    stroke: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.fp-header-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--fp-white);
    letter-spacing: -0.3px;
}

.fp-header-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.fp-wave {
    position: relative;
    height: 40px;
    overflow: hidden;
}

.fp-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================================
   FORM CONTAINER
   ============================================================ */

.fp-form-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    width: 100%;
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */

.fp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.fp-step-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--fp-gray-border);
    background: var(--fp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.fp-step-item.active .fp-step-circle {
    background: var(--fp-teal);
    border-color: var(--fp-teal);
    color: var(--fp-white);
    box-shadow: 0 0 0 4px rgba(85, 192, 186, 0.2);
}

.fp-step-item.done .fp-step-circle {
    background: var(--fp-white);
    border-color: var(--fp-teal);
    color: var(--fp-teal);
}

.fp-step-item.done .fp-step-circle span {
    display: none;
}

.fp-step-item.done .fp-step-circle::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--fp-teal);
    border-bottom: 2px solid var(--fp-teal);
    transform: rotate(-45deg) translate(1px, -1px);
}

.fp-step-line {
    flex: 1;
    height: 2px;
    background: var(--fp-gray-border);
    max-width: 80px;
    transition: background 0.3s ease;
}

.fp-step-line.active {
    background: var(--fp-teal);
}

/* ============================================================
   PANEL
   ============================================================ */

.fp-panel {
    background: var(--fp-white);
    border-radius: var(--fp-radius);
    padding: 32px;
    box-shadow: var(--fp-shadow);
    margin-bottom: 20px;
    animation: fp-fade-in 0.25s ease;
}

@keyframes fp-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fp-panel-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--fp-black);
}

.fp-panel-subtitle {
    font-size: 14px;
    color: var(--fp-teal);
    margin: 0 0 24px;
}

/* ============================================================
   FIELD
   ============================================================ */

.fp-field {
    margin-bottom: 24px;
}

.fp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-black);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.fp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fp-input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    stroke: #aaa;
    flex-shrink: 0;
    pointer-events: none;
}

.fp-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--fp-gray-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--fp-black);
    background: var(--fp-white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.fp-input::placeholder {
    color: #bbb;
}

.fp-input:focus {
    border-color: var(--fp-teal);
    box-shadow: 0 0 0 3px rgba(85, 192, 186, 0.12);
}

.fp-input.fp-error {
    border-color: var(--fp-red);
}

.fp-field-error {
    display: block;
    font-size: 12px;
    color: var(--fp-red);
    margin-top: 5px;
    min-height: 16px;
}

.fp-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.fp-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--fp-gray-border);
    border-radius: 10px;
    background: #fafcfc;
    font-size: 14px;
    line-height: 1.5;
}

.fp-checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--fp-teal);
}

.fp-checkbox-item a {
    color: var(--fp-teal-dark);
    font-weight: 600;
}

.fp-checkbox-error {
    border-color: var(--fp-red);
    background: #fff5f5;
}

/* ============================================================
   CHIPS
   ============================================================ */

.fp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.fp-chip {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--fp-gray-border);
    background: var(--fp-white);
    color: var(--fp-black);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    outline: none;
}

.fp-chip:hover {
    border-color: var(--fp-teal);
    color: var(--fp-teal);
    background: rgba(85, 192, 186, 0.06);
}

.fp-chip.selected {
    border-color: var(--fp-teal);
    color: var(--fp-teal);
    background: rgba(85, 192, 186, 0.1);
    font-weight: 600;
}

.fp-otro-wrapper {
    margin-top: 10px;
}

.fp-otro-wrapper .fp-input {
    padding-left: 16px;
}

/* ============================================================
   CONTADORES
   ============================================================ */

.fp-counters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.fp-counter-card {
    background: var(--fp-gray-bg);
    border-radius: 10px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.fp-counter-icon {
    width: 28px;
    height: 28px;
}

.fp-counter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-black);
    line-height: 1.3;
}

.fp-counter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.fp-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--fp-teal);
    background: var(--fp-white);
    color: var(--fp-teal);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    outline: none;
    padding: 0;
    font-weight: 300;
}

.fp-counter-btn:hover {
    background: var(--fp-teal);
    color: var(--fp-white);
}

.fp-counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fp-counter-val {
    font-size: 22px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--fp-black);
}

/* ============================================================
   TARIFAS
   ============================================================ */

.fp-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(85, 192, 186, 0.08);
    border: 1px solid rgba(85, 192, 186, 0.3);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
}

.fp-tarifa-row {
    border: 1.5px solid var(--fp-gray-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.fp-tarifa-row.active {
    border-color: var(--fp-teal);
    background: rgba(85, 192, 186, 0.03);
}

.fp-tarifa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
}

.fp-tarifa-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--fp-black);
}

/* Toggle switch */
.fp-toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.fp-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fp-toggle-track {
    width: 44px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    position: relative;
    transition: background 0.25s ease;
}

.fp-toggle-input:checked + .fp-toggle-track {
    background: var(--fp-teal);
}

.fp-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--fp-white);
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.fp-toggle-input:checked + .fp-toggle-track .fp-toggle-thumb {
    transform: translateX(20px);
}

.fp-tarifa-price {
    border-top: 1.5px solid rgba(85, 192, 186, 0.2);
    padding: 14px 18px;
    background: rgba(85, 192, 186, 0.04);
    animation: fp-fade-in 0.2s ease;
}

.fp-price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 140px;
}

.fp-price-symbol {
    font-size: 20px;
    font-weight: 600;
    color: var(--fp-gray-text);
}

.fp-price-input {
    flex: 1;
    border: 1.5px solid var(--fp-gray-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--fp-black);
    outline: none;
    text-align: right;
    background: var(--fp-white);
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.fp-price-input::-webkit-outer-spin-button,
.fp-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fp-price-input:focus {
    border-color: var(--fp-teal);
    box-shadow: 0 0 0 3px rgba(85, 192, 186, 0.12);
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */

.fp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 4px;
}

.fp-btn-back {
    background: none;
    border: none;
    color: var(--fp-gray-text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 0;
    outline: none;
    transition: color 0.2s;
}

.fp-btn-back:hover {
    color: var(--fp-black);
}

.fp-btn-next,
.fp-btn-submit {
    padding: 13px 28px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    letter-spacing: 0.2px;
}

.fp-btn-next {
    background: var(--fp-gray-bg);
    color: var(--fp-gray-text);
    border: 1.5px solid var(--fp-gray-border);
}

.fp-btn-next.fp-ready {
    background: var(--fp-teal);
    color: var(--fp-white);
    border-color: var(--fp-teal);
    box-shadow: 0 4px 14px rgba(85, 192, 186, 0.35);
}

.fp-btn-next.fp-ready:hover {
    background: var(--fp-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(85, 192, 186, 0.4);
}

.fp-btn-submit {
    background: var(--fp-red);
    color: var(--fp-white);
    box-shadow: 0 4px 14px rgba(241, 106, 100, 0.35);
}

.fp-btn-submit:hover:not(:disabled) {
    background: var(--fp-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(241, 106, 100, 0.4);
}

.fp-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   ERROR MESSAGE
   ============================================================ */

.fp-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

.fp-success-msg {
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    color: #047857;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */

.fp-thanks-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    text-align: center;
}

.fp-thanks-icon {
    width: 80px;
    height: 80px;
    background: rgba(85, 192, 186, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.fp-thanks-icon svg {
    width: 40px;
    height: 40px;
}

.fp-thanks-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--fp-black);
    margin: 0 0 16px;
}

.fp-thanks-text {
    font-size: 16px;
    color: var(--fp-gray-text);
    line-height: 1.7;
    margin: 0 0 36px;
}

.fp-thanks-steps {
    background: var(--fp-white);
    border-radius: var(--fp-radius);
    padding: 28px;
    box-shadow: var(--fp-shadow);
    text-align: left;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fp-thanks-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.fp-thanks-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fp-teal);
    color: var(--fp-white);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fp-thanks-step strong {
    display: block;
    font-size: 15px;
    color: var(--fp-black);
    margin-bottom: 2px;
}

.fp-thanks-step p {
    margin: 0;
    font-size: 13px;
    color: var(--fp-gray-text);
    line-height: 1.5;
}

.fp-thanks-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--fp-teal);
    color: var(--fp-white);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(85, 192, 186, 0.35);
}

.fp-thanks-btn:hover {
    background: var(--fp-teal-dark);
    color: var(--fp-white);
    transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
    .fp-panel {
        padding: 24px 20px;
    }

    .fp-header-title {
        font-size: 22px;
    }

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

    .fp-step-line {
        max-width: 40px;
    }

    .fp-chips {
        gap: 6px;
    }

    .fp-chip {
        font-size: 13px;
        padding: 7px 14px;
    }
}
