/* ================================================
   EstatePilot Plan Form — ep-style.css v1.0
   ================================================ */

:root {
    --ep-navy:       #1B3468;
    --ep-navy-dark:  #122350;
    --ep-blue-mid:   #2c4f96;
    --ep-teal:       #4a7fc1;
    --ep-white:      #ffffff;
    --ep-bg:         #f5f7fb;
    --ep-border:     #d4dbe8;
    --ep-text:       #2d3340;
    --ep-muted:      #7a8499;
    --ep-error-col:  #c0392b;
    --ep-radius:     8px;
    --ep-card-shadow: 0 4px 28px rgba(27, 52, 104, 0.13);
}

/* ── Reset scoped to plugin ── */
#ep-plan-wrap,
#ep-plan-wrap * {
    box-sizing: border-box;
}

/* ── Outer wrapper ── */
#ep-plan-wrap {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    color: var(--ep-text);
}

/* ── Card ── */
.ep-card {
    background: var(--ep-white);
    border-radius: 14px;
   box-shadow: 0 0 30px #adc5ee;
  border-radius: 15px;
    overflow: hidden;
}

/* ── Card header ── */
.ep-card-header {
    background: var(--ep-navy);
    padding: 20px 32px;
    text-align: center;
}
.ep-card-title {
    color: var(--ep-white);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

/* ── Steps bar ── */
.ep-steps-bar {
    padding: 22px 28px 14px;
    border-bottom: 1px solid var(--ep-border);
}
.ep-steps-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ep-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ep-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e4e9f2;
    color: var(--ep-muted);
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s;
}
.ep-step--active .ep-step-circle,
.ep-step--done .ep-step-circle {
    background: var(--ep-navy);
    color: var(--ep-white);
}
.ep-step-label {
    font-family: Poppins, sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    color: var(--ep-muted);
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
}
.ep-step--active .ep-step-label {
    color: var(--ep-navy);
}
.ep-step-line {
    flex: 1;
    height: 2px;
    background: var(--ep-border);
    margin: 0 8px 22px;
    min-width: 32px;
}

/* ── Step panels ── */
.ep-step-panel {
    display: none;
    padding: 28px 36px 32px;
}
.ep-step-panel--active {
    display: block;
}

/* ── Section titles ── */
.ep-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    color: var(--ep-navy);
    text-align: center;
    margin: 0 0 22px;
    font-weight: 400;
}
.ep-section-title--sub {
    font-size: 1.2rem;
    color: var(--ep-blue-mid);
    margin-top: 18px;
    margin-bottom: 14px;
}
.ep-sub-heading {
    font-family: Poppins, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ep-text);
    margin: 16px 0 10px;
}

/* ── Fields ── */
.ep-field {
    margin-bottom: 18px;
}
.ep-label {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ep-text);
    margin-bottom: 7px;
}
.ep-sublabel {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ep-text);
    margin-bottom: 5px;
}

/* ── Inputs and selects ── */
.ep-input,
.ep-select {
    width: 100%;
    padding: 11px 14px!important;
    border: 1.5px solid #bababa;
    border-radius: var(--ep-radius);
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    color: var(--ep-text);
    background: var(--ep-white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
	height:50px;
}
.ep-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 4.5L11 1' stroke='%231B3468' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 34px;
    cursor: pointer;
}
.ep-input::placeholder {
    color: var(--ep-muted);
}
.ep-input:focus,
.ep-select:focus {
    border-color: var(--ep-teal);
    box-shadow: 0 0 0 3px rgba(74, 127, 193, 0.12);
}
.ep-input.ep-has-error,
.ep-select.ep-has-error {
    border-color: var(--ep-error-col);
}

/* ── Field error text ── */
.ep-field-error {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 0.78rem;
    color: var(--ep-error-col);
    margin-top: 4px;
    min-height: 1px;
}

/* ── Global error box ── */
.ep-global-error {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    color: var(--ep-error-col);
    border-radius: 6px;
    padding: 11px 15px;
    font-family: Poppins, sans-serif;
    font-size: 0.875rem;
    margin-bottom: 14px;
}

/* ── Checkboxes ── */
.ep-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ep-check-label {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    color: var(--ep-text);
    cursor: pointer;
    line-height: 1.4;
}
.ep-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--ep-navy);
    border: 1.5px solid var(--ep-border);
    border-radius: 3px;
}

/* ── Radio buttons ── */
.ep-radios {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.ep-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    color: var(--ep-text);
    cursor: pointer;
}
.ep-radio {
    width: 16px;
    height: 16px;
    accent-color: var(--ep-navy);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Two-column row ── */
.ep-field-row {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}
.ep-field-col {
    flex: 1;
}
.ep-field-col--full {
    flex: 0 0 100%;
}

/* ── Conditional blocks ── */
.ep-conditional-block {
    display: none;
    background: #f8faff;
    border-left: 3px solid var(--ep-teal);
    border-radius: 0 var(--ep-radius) var(--ep-radius) 0;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.ep-conditional-block.ep-show {
    display: block;
}

/* ── Buttons ── */
button.ep-btn-primary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--ep-navy);
    color: var(--ep-white);
    border: none;
    border-radius: var(--ep-radius);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
    text-align: center;
}
button.ep-btn-primary:hover {
    background: var(--ep-navy-dark);
    transform: translateY(-1px);
}
button.ep-btn-primary:active {
    transform: translateY(0);
}
button.ep-btn-primary:disabled,
button.ep-btn-primary[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

button.ep-btn-outline, button.ep-btn-remove-child {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: var(--ep-navy);
    border: 1.5px solid #000;
    border-radius: var(--ep-radius);
    font-family: Poppins, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 4px;
}
button.ep-btn-outline:hover, button.ep-btn-remove-child:hover {
    border-color:#122350;
    background:#122350;
}

button.ep-btn-ghost {
    padding: 12px 20px;
    background: transparent;
    color: #083a84;
    border: 1.5px solid #083a84;
    border-radius: var(--ep-radius);
    font-family: Poppins, sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
button.ep-btn-ghost:hover {
   background:#000;
}

.ep-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: stretch;
}
.ep-btn-row .ep-btn-primary {
    flex: 1;
    margin-top: 0;
}

/* ── Misc ── */
.ep-secure-note {
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 0.75rem;
    color: var(--ep-muted);
    margin-top: 10px;
    margin-bottom: 0;
}

/* ── Thank you panel ── */
.ep-ty-hero {
    text-align: center;
    padding: 32px 24px 16px;
}
.ep-ty-icon {
    width: 60px;
    height: 60px;
    background: var(--ep-navy);
    color: var(--ep-white);
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 60px;
    margin: 0 auto 16px;
}
.ep-ty-title {
    font-size: 1.55rem;
    color: var(--ep-navy);
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
    font-weight: 600;
}
.ep-ty-sub {
    color: var(--ep-muted);
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    margin: 0;
}
.ep-ty-sub strong {
    color: var(--ep-navy);
}
#ep-report-container {
    border-top: 1px solid var(--ep-border);
}
#ep-report-container iframe {
    width: 100%;
    border: none;
    display: block;
    min-height: 500px;
}
.ep-ty-callback {
    background: #eef4ff;
    border-top: 1px solid var(--ep-border);
    padding: 16px 32px;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 0.93rem;
    color: var(--ep-navy);
}
.ep-ty-callback p {
    margin: 0;
}

/* ── Below-form sections ── */
.ep-below-sections {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ep-benefits-box {
    background: var(--ep-white);
    border-radius: 12px;
    box-shadow: var(--ep-card-shadow);
    padding: 26px 30px;
}
.ep-benefits-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--ep-navy);
    margin: 0 0 16px;
    font-weight: 600;
}
.ep-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.ep-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    color: var(--ep-text);
    line-height: 1.5;
}
.ep-benefit-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.ep-super-callout {
    background: var(--ep-navy);
    color: var(--ep-white);
    border-radius: 12px;
    padding: 26px 30px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.ep-super-callout-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
}
.ep-super-callout-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ep-white);
    margin: 0 0 9px;
}
.ep-super-callout-body p {
    font-family: Poppins, sans-serif;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}
.ep-super-callout-body strong {
    color: var(--ep-white);
}
.ep-super-callout-body em {
    color: rgba(255, 255, 255, 0.92);
}

.ep-child-delete-col{
    display:flex;
    align-items:flex-end;
}

.ep-btn-remove-child{
    background:#d9534f;
    color:#fff;
    border:0;
    padding:12px 16px;
    border-radius:4px;
    cursor:pointer;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .ep-step-panel {
        padding: 20px 18px 24px;
    }
    .ep-card-header {
        padding: 18px;
    }
    .ep-section-title {
        font-size: 1.3rem;
    }
    .ep-field-row {
        flex-direction: column;
    }
    .ep-step-line {
        min-width: 20px;
    }
    .ep-step-label {
        font-size: 0.55rem;
    }
    .ep-super-callout {
        flex-direction: column;
    }
    .ep-below-sections {
        padding: 0;
    }
}
