/* ── EnergoAnalizy Order Form v2.1 ── */

.ea-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 48px;
    font-family: inherit;
}

/* ── Nagłówek ── */
.ea-header {
    text-align: center;
    margin-bottom: 28px;
}
.ea-header__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #2D35E0;
    background: #f0f2ff;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 12px;
}
.ea-header__desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Karty wyboru ── */
.ea-path-chooser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}
.ea-path-chooser--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
    .ea-path-chooser,
    .ea-path-chooser--three { grid-template-columns: 1fr; }
}

.ea-path-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 20px 16px;
    background: #fff;
    border: 1.5px solid #e0e2f0;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}
.ea-path-btn:hover {
    border-color: #2D35E0;
    box-shadow: 0 4px 16px rgba(45,53,224,.1);
    transform: translateY(-2px);
}
.ea-path-btn--mid {
    border-color: #8b5cf6;
    background: #faf8ff;
}
.ea-path-btn--mid:hover { border-color: #7c3aed; box-shadow: 0 4px 16px rgba(124,58,237,.1); }
.ea-path-btn--premium { border-color: #2D35E0; background: #f0f2ff; }

.ea-path-badge {
    position: absolute;
    top: -11px; right: 14px;
    font-size: 10px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 20px; color: #fff;
    background: #2D35E0;
}
.ea-path-badge--mid { background: #7c3aed; }

.ea-path-icon  { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.ea-path-title { font-size: 14px; font-weight: 700; color: #1a1a2e; }
.ea-path-price { font-size: 18px; font-weight: 800; color: #2D35E0; }
.ea-path-btn--mid .ea-path-price { color: #7c3aed; }
.ea-path-desc  { font-size: 12px; color: #777; line-height: 1.5; margin-top: 2px; }

/* ── Kroki ── */
.ea-steps {
    display: flex;
    align-items: flex-start;
    background: #f8f9ff;
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 28px;
    gap: 0;
}
.ea-step {
    flex: 1;
    text-align: center;
    position: relative;
}
.ea-step + .ea-step::before {
    content: '';
    position: absolute;
    left: 0; top: 13px;
    width: 100%;
    border-top: 1px dashed #c8caeb;
    transform: translateX(-50%);
}
.ea-step__num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #2D35E0; color: #fff;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    position: relative; z-index: 1;
}
.ea-step__label {
    font-size: 12px; font-weight: 600;
    color: #1a1a2e; margin-bottom: 2px;
}
.ea-step__sub {
    font-size: 11px; color: #888;
}
@media (max-width: 480px) {
    .ea-steps { flex-direction: column; gap: 12px; }
    .ea-step + .ea-step::before { display: none; }
}

/* ── Panel formularza ── */
.ea-back-btn {
    background: none; border: none;
    color: #2D35E0; font-size: 13px; font-weight: 500;
    cursor: pointer; padding: 0; margin-bottom: 14px;
    display: inline-flex; align-items: center; gap: 4px;
}
.ea-back-btn:hover { text-decoration: underline; }

.ea-price-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #2D35E0; color: #fff;
    padding: 13px 18px; border-radius: 10px;
    margin-bottom: 24px; font-size: 14px;
}
.ea-price-bar strong { font-size: 18px; font-weight: 700; }
.ea-price-bar--mid    { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ea-price-bar--premium { background: linear-gradient(135deg, #2D35E0, #1e27c7); }

.ea-price-breakdown { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ea-price-shipping  { font-size: 12px; opacity: .8; font-weight: 400; display: block; }

.ea-path-info {
    background: #f5f3ff;
    border-left: 3px solid #7c3aed;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 13px; color: #555; line-height: 1.6;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

/* ── Sekcje formularza ── */
.ea-section-title {
    font-size: 10px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: #2D35E0;
    border-bottom: 1px solid rgba(45,53,224,.15);
    padding-bottom: 6px; margin: 24px 0 12px;
    grid-column: 1 / -1;
}

/* ── Siatka 2-kolumnowa ── */
.ea-form-panel form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.ea-submit-btn,
.ea-submit-hint,
.ea-consents { grid-column: 1 / -1; }
.ea-field-wrap.ea-full { grid-column: 1 / -1; }

@media (max-width: 560px) {
    .ea-form-panel form { grid-template-columns: 1fr; }
    .ea-field-wrap { grid-column: 1 / -1 !important; }
}

/* ── Pola ── */
.ea-field-wrap { margin-bottom: 12px; }
.ea-field-wrap label {
    display: block; font-size: 12px; font-weight: 500;
    color: #444; margin-bottom: 4px;
}
.ea-required { color: #2D35E0; margin-left: 1px; }
.ea-hint { font-size: 11px; color: #aaa; margin: 2px 0 4px; line-height: 1.4; }

.ea-field-wrap input,
.ea-field-wrap select,
.ea-field-wrap textarea {
    width: 100%; padding: 9px 12px;
    border: 1.5px solid #e4e6f0; border-radius: 8px;
    font-size: 14px; color: #1a1a2e; background: #fff;
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
    font-family: inherit; appearance: none; -webkit-appearance: none;
    line-height: 1.4;
}
.ea-field-wrap input:focus,
.ea-field-wrap select:focus,
.ea-field-wrap textarea:focus {
    outline: none; border-color: #2D35E0;
    box-shadow: 0 0 0 3px rgba(45,53,224,.08);
}
.ea-field-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%232D35E0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px; cursor: pointer;
}
.ea-field-wrap textarea { resize: vertical; min-height: 80px; }

/* ── Upload pliku ── */
.ea-file-label {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border: 1.5px dashed #c0c4e0; border-radius: 8px;
    cursor: pointer; background: #fafbff;
    transition: border-color .2s, background .2s;
}
.ea-file-label:hover { border-color: #2D35E0; background: #f0f2ff; }
.ea-file-label.ea-file--selected { border-color: #2D35E0; background: #f0f2ff; }
.ea-file-label.ea-file--selected .ea-file-text { color: #2D35E0; font-weight: 500; }
.ea-file-icon { font-size: 18px; flex-shrink: 0; }
.ea-file-text { font-size: 13px; color: #666; }

/* ── Submit ── */
.ea-submit-btn {
    display: block; width: 100%;
    padding: 14px 24px; background: #2D35E0; color: #fff;
    border: none; border-radius: 50px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    margin-top: 24px; transition: background .2s, transform .12s;
}
.ea-submit-btn:hover { background: #1e27c7; transform: translateY(-1px); }
.ea-submit-btn--mid     { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ea-submit-btn--premium { background: linear-gradient(135deg, #2D35E0, #1e27c7); }
.ea-submit-hint { text-align: center; font-size: 11px; color: #bbb; margin-top: 8px; }

/* ── Redirect kontakt ── */
.ea-contact-redirect {
    text-align: center; padding: 48px 24px;
    background: #fff; border: 1.5px solid #e0e2f0;
    border-radius: 16px; max-width: 500px; margin: 0 auto;
}
.ea-contact-redirect__icon { font-size: 40px; margin-bottom: 16px; }
.ea-contact-redirect__title { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; }
.ea-contact-redirect__desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 24px; }

/* ── FAQ ── */
.ea-faq { margin-top: 40px; border-top: 1px solid #e0e2f0; padding-top: 28px; }
.ea-faq__title {
    font-size: 18px; font-weight: 700; color: #1a1a2e;
    margin-bottom: 16px; text-align: center;
}
.ea-faq__item {
    border: 1px solid #e8eaf0; border-radius: 10px;
    margin-bottom: 8px; overflow: hidden;
}
.ea-faq__q {
    width: 100%; display: flex; justify-content: space-between;
    align-items: center; gap: 16px; padding: 14px 18px;
    background: #fff; border: none; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #1a1a2e;
    text-align: left; transition: background .15s;
}
.ea-faq__q:hover { background: #f8f9ff; }
.ea-faq__q[aria-expanded="true"] { background: #f0f2ff; color: #2D35E0; }
.ea-faq__icon {
    font-size: 20px; font-weight: 300; color: #2D35E0;
    flex-shrink: 0; transition: transform .2s; line-height: 1;
}
.ea-faq__q[aria-expanded="true"] .ea-faq__icon { transform: rotate(45deg); }
.ea-faq__a {
    font-size: 13px; color: #555; line-height: 1.7;
    padding: 0 18px; max-height: 0; overflow: hidden;
    transition: max-height .28s ease, padding .28s ease;
}
.ea-faq__a:not([hidden]) { max-height: 300px; padding: 0 18px 14px; }

/* ── VAT badge pod ceną ── */
.ea-path-vat {
    font-size: 10px;
    color: #999;
    font-weight: 400;
    margin-top: -3px;
}

/* ── Centrowanie tytułu strony (WordPress page title) ── */
.page-template-default .entry-title,
.page-template-default h1.page-title,
body.page .entry-header,
body.page .page-header {
    text-align: center !important;
}

/* ── Zgody ── */
.ea-consents {
    grid-column: 1 / -1;
    margin-top: 20px;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.ea-consent-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #444 !important;
    line-height: 1.5;
}
.ea-consent-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #2D35E0;
    cursor: pointer;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.ea-consent-label a {
    color: #2D35E0;
    text-decoration: underline;
}
.ea-consent-label a:hover { opacity: .8; }

/* ── Baner płatności ── */
.ea-pay-banner {
    grid-column: 1 / -1;
    text-align: center;
}
.ea-pay-banner img {
    max-width: 280px;
    width: 100%;
    opacity: .85;
    display: block;
    margin: 10px auto 0;
    transition: opacity .2s;
}
.ea-pay-banner img:hover { opacity: 1; }

/* ── Faktura VAT na checkoucie ── */
#ea-invoice-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e2f0;
}
#ea-invoice-section .ea-invoice-toggle label {
    font-weight: 600 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
#ea-invoice-fields {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9ff;
    border: 1.5px solid #e0e2f0;
    border-radius: 10px;
}
