/* =========================================================
   VSUN SOLAR CALCULATOR
   STEP 4 + STEP 5
   Version: 1.0.0
========================================================= */

/* =========================================================
   LOCAL VARIABLES
========================================================= */

.vsun-step-4,
.vsun-step-5 {
    --vsun-primary: #f5a900;
    --vsun-primary-dark: #d98e00;
    --vsun-primary-light: #fff8e6;

    --vsun-secondary: #0756b8;
    --vsun-secondary-dark: #06438e;
    --vsun-secondary-light: #eff6ff;

    --vsun-success: #15803d;
    --vsun-success-light: #f0fdf4;

    --vsun-warning: #b45309;
    --vsun-warning-light: #fffbeb;

    --vsun-danger: #b91c1c;
    --vsun-danger-light: #fef2f2;

    --vsun-text: #172033;
    --vsun-text-soft: #475569;
    --vsun-muted: #64748b;

    --vsun-border: #e2e8f0;
    --vsun-border-dark: #cbd5e1;

    --vsun-surface: #ffffff;
    --vsun-surface-soft: #f8fafc;

    --vsun-radius-sm: 8px;
    --vsun-radius-md: 12px;
    --vsun-radius-lg: 16px;
    --vsun-radius-xl: 20px;

    --vsun-shadow-sm:
        0 4px 14px rgba(15, 23, 42, 0.05);

    --vsun-shadow-md:
        0 10px 28px rgba(15, 23, 42, 0.08);

    --vsun-shadow-selected:
        0 12px 32px rgba(245, 169, 0, 0.17);

    --vsun-transition:
        0.22s ease;
}

/* =========================================================
   HIDDEN ELEMENTS
========================================================= */

.vsun-step-4 [hidden],
.vsun-step-5 [hidden] {
    display: none !important;
}

/* =========================================================
   GENERAL STEP STRUCTURE
========================================================= */

.vsun-step-4,
.vsun-step-5 {
    direction: rtl;
    width: 100%;
    color: var(--vsun-text);
}

.vsun-step-4 *,
.vsun-step-5 * {
    box-sizing: border-box;
}

.vsun-step-4 button,
.vsun-step-5 button,
.vsun-step-4 input,
.vsun-step-5 input,
.vsun-step-4 select,
.vsun-step-5 select,
.vsun-step-4 textarea,
.vsun-step-5 textarea {
    font-family: inherit;
}

.vsun-step-4-branch,
.vsun-step-5-branch,
.vsun-step-5-subbranch {
    width: 100%;
}

/* =========================================================
   SELECTED PATH CONTEXT
========================================================= */

.vsun-step-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 10px 18px;

    width: 100%;
    margin: 0 0 22px;
    padding: 13px 16px;

    background:
        linear-gradient(
            135deg,
            var(--vsun-secondary-light) 0%,
            #ffffff 100%
        );

    border: 1px solid rgba(7, 86, 184, 0.14);
    border-right: 4px solid var(--vsun-secondary);
    border-radius: var(--vsun-radius-md);
}

.vsun-step-context-item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;
}

.vsun-step-context-label {
    color: var(--vsun-muted);

    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.8;
}

.vsun-step-context strong {
    color: var(--vsun-secondary-dark);

    font-size: 13.5px;
    font-weight: 850;
    line-height: 1.8;
}

/* =========================================================
   BRANCH HEADERS
========================================================= */

.vsun-branch-header,
.vsun-section-heading {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    width: 100%;
    margin-bottom: 20px;
}

.vsun-branch-icon,
.vsun-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 52px;
    height: 52px;

    background:
        linear-gradient(
            135deg,
            var(--vsun-primary-light) 0%,
            #ffffff 100%
        );

    border: 1px solid rgba(245, 169, 0, 0.22);
    border-radius: 50%;

    font-size: 25px;
    line-height: 1;

    box-shadow: var(--vsun-shadow-sm);
}

.vsun-section-icon {
    width: 44px;
    height: 44px;

    font-size: 21px;
}

.vsun-branch-header > div,
.vsun-section-heading > div {
    flex: 1;
    min-width: 0;
}

.vsun-branch-header h3,
.vsun-section-heading h3,
.vsun-section-heading h4 {
    margin: 0;

    color: var(--vsun-text);

    font-size: 19px;
    font-weight: 900;
    line-height: 1.75;
}

.vsun-section-heading h4 {
    font-size: 17px;
}

.vsun-branch-header p,
.vsun-section-heading p {
    margin: 5px 0 0;

    color: var(--vsun-muted);

    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.9;
}

/* =========================================================
   GENERIC CHOICE CARDS
========================================================= */

.vsun-step-4 .choice,
.vsun-step-5 .choice {
    appearance: none;
    -webkit-appearance: none;

    position: relative;

    display: flex;
    align-items: flex-start;

    gap: 13px;

    width: 100%;
    min-width: 0;

    padding: 17px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--vsun-surface-soft) 100%
        );

    color: var(--vsun-text);

    border: 1px solid var(--vsun-border);
    border-radius: var(--vsun-radius-lg);

    text-align: right;

    cursor: pointer;

    box-shadow: var(--vsun-shadow-sm);

    transition:
        border-color var(--vsun-transition),
        background var(--vsun-transition),
        box-shadow var(--vsun-transition),
        transform var(--vsun-transition);
}

.vsun-step-4 .choice:hover,
.vsun-step-5 .choice:hover {
    border-color: rgba(245, 169, 0, 0.65);

    transform: translateY(-2px);

    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.09);
}

.vsun-step-4 .choice:focus-visible,
.vsun-step-5 .choice:focus-visible {
    outline: 3px solid rgba(7, 86, 184, 0.15);
    outline-offset: 3px;

    border-color: var(--vsun-secondary);
}

.vsun-step-4 .choice.selected,
.vsun-step-4 .choice[aria-pressed="true"],
.vsun-step-5 .choice.selected,
.vsun-step-5 .choice[aria-pressed="true"] {
    background:
        linear-gradient(
            135deg,
            #fffdf6 0%,
            var(--vsun-primary-light) 100%
        );

    border-color: var(--vsun-primary);

    box-shadow: var(--vsun-shadow-selected);

    transform: translateY(-2px);
}

.vsun-step-4 .choice.selected::after,
.vsun-step-4 .choice[aria-pressed="true"]::after,
.vsun-step-5 .choice.selected::after,
.vsun-step-5 .choice[aria-pressed="true"]::after {
    content: "✓";

    position: absolute;
    top: 10px;
    left: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    background: var(--vsun-success);
    color: #ffffff;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.vsun-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 44px;
    min-height: 44px;

    font-size: 25px;
    line-height: 1.2;
}

.vsun-choice-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    min-width: 0;
}

.vsun-choice-title {
    display: block;

    padding-left: 25px;

    color: var(--vsun-text);

    font-size: 15px;
    font-weight: 900;
    line-height: 1.8;
}

.vsun-choice-description {
    display: block;

    margin-top: 4px;

    color: var(--vsun-text-soft);

    font-size: 12.8px;
    font-weight: 500;
    line-height: 1.9;
}

.vsun-choice-note {
    display: block;

    margin-top: 9px;
    padding-top: 8px;

    color: var(--vsun-secondary-dark);

    border-top: 1px dashed rgba(7, 86, 184, 0.2);

    font-size: 11.8px;
    font-weight: 650;
    line-height: 1.9;
}

/* =========================================================
   STEP 4 OPTION GRIDS
========================================================= */

.vsun-step-4-options,
.vsun-step-5-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
}

.vsun-step-4-option,
.vsun-step-5-option {
    min-height: 116px;
}

/* =========================================================
   STEP 4 CAPACITY OPTIONS
========================================================= */

.vsun-capacity-section {
    width: 100%;
    margin-top: 8px;
}

.vsun-section-label {
    margin: 0 0 13px;

    color: var(--vsun-text);

    font-size: 14px;
    font-weight: 850;
    line-height: 1.8;
}

.vsun-capacity-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.vsun-capacity-option {
    align-items: center !important;
    justify-content: center;

    min-height: 76px !important;
    padding: 15px !important;

    text-align: center !important;
}

.vsun-capacity-option strong {
    padding: 0;

    color: var(--vsun-text);

    font-size: 15px;
    font-weight: 900;
    line-height: 1.5;
}

.vsun-capacity-special-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
    margin-top: 18px;
}

.vsun-wide-option {
    min-height: 130px;
}

/* =========================================================
   FORM FIELDS
========================================================= */

.vsun-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}

.vsun-field-group {
    width: 100%;
    margin-top: 17px;
}

.vsun-form-grid .vsun-field-group {
    margin-top: 0;
}

.vsun-field-group > label {
    display: block;

    margin-bottom: 7px;

    color: var(--vsun-text);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.8;
}

.vsun-field-group input:not([type="checkbox"]):not([type="radio"]),
.vsun-field-group select,
.vsun-field-group textarea,
.vsun-form-grid input:not([type="checkbox"]):not([type="radio"]),
.vsun-form-grid select,
.vsun-form-grid textarea {
    display: block;

    width: 100%;
    min-height: 46px;

    padding: 10px 12px;

    background: #ffffff;
    color: var(--vsun-text);

    border: 1px solid var(--vsun-border-dark);
    border-radius: var(--vsun-radius-sm);

    font-size: 13px;
    font-weight: 550;
    line-height: 1.7;

    outline: none;

    transition:
        border-color var(--vsun-transition),
        box-shadow var(--vsun-transition),
        background var(--vsun-transition);
}

.vsun-field-group textarea,
.vsun-form-grid textarea {
    min-height: 105px;

    resize: vertical;
}

.vsun-field-group input:focus,
.vsun-field-group select:focus,
.vsun-field-group textarea:focus,
.vsun-form-grid input:focus,
.vsun-form-grid select:focus,
.vsun-form-grid textarea:focus {
    background: #ffffff;

    border-color: var(--vsun-secondary);

    box-shadow:
        0 0 0 3px rgba(7, 86, 184, 0.1);
}

.vsun-field-group input::placeholder,
.vsun-field-group textarea::placeholder,
.vsun-form-grid input::placeholder,
.vsun-form-grid textarea::placeholder {
    color: #94a3b8;
}

/* =========================================================
   INPUT WITH UNIT
========================================================= */

.vsun-input-with-unit,
.vsun-mini-input {
    display: flex;
    align-items: stretch;

    width: 100%;

    background: #ffffff;

    border: 1px solid var(--vsun-border-dark);
    border-radius: var(--vsun-radius-sm);

    overflow: hidden;

    transition:
        border-color var(--vsun-transition),
        box-shadow var(--vsun-transition);
}

.vsun-input-with-unit:focus-within,
.vsun-mini-input:focus-within {
    border-color: var(--vsun-secondary);

    box-shadow:
        0 0 0 3px rgba(7, 86, 184, 0.1);
}

.vsun-input-with-unit input,
.vsun-mini-input input {
    flex: 1;

    min-width: 0;
    min-height: 44px;

    padding: 9px 11px !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    outline: none !important;
}

.vsun-input-with-unit > span,
.vsun-mini-input > small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    min-width: 63px;
    padding: 8px 10px;

    background: var(--vsun-surface-soft);
    color: var(--vsun-muted);

    border-right: 1px solid var(--vsun-border);

    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.5;
}

/* =========================================================
   INFORMATION BOXES
========================================================= */

.vsun-info-note,
.vsun-equipment-instructions,
.vsun-large-project-warning {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    width: 100%;
    margin: 16px 0;
    padding: 13px 14px;

    background: var(--vsun-secondary-light);

    border: 1px solid rgba(7, 86, 184, 0.13);
    border-right: 4px solid var(--vsun-secondary);
    border-radius: var(--vsun-radius-md);
}

.vsun-large-project-warning {
    background: var(--vsun-warning-light);

    border-color: rgba(180, 83, 9, 0.18);
    border-right-color: var(--vsun-warning);
}

.vsun-info-note > span,
.vsun-large-project-warning > span {
    flex: 0 0 auto;

    font-size: 19px;
    line-height: 1.4;
}

.vsun-info-note p,
.vsun-equipment-instructions p,
.vsun-large-project-warning p {
    margin: 0;

    color: var(--vsun-text-soft);

    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.9;
}

/* =========================================================
   CONSUMPTION SUMMARY
========================================================= */

.vsun-consumption-summary-card {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
    margin: 17px 0;
}

.vsun-consumption-summary-item {
    display: flex;
    flex-direction: column;

    gap: 7px;

    padding: 16px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--vsun-secondary-light) 100%
        );

    border: 1px solid rgba(7, 86, 184, 0.13);
    border-radius: var(--vsun-radius-md);
}

.vsun-consumption-summary-item > span {
    color: var(--vsun-muted);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.vsun-consumption-summary-item > strong {
    color: var(--vsun-secondary-dark);

    font-size: 14px;
    font-weight: 850;
    line-height: 1.7;
}

.vsun-consumption-summary-item b {
    font-size: 21px;
    font-weight: 950;
}

/* =========================================================
   HIGHLIGHTED VALUES
========================================================= */

.vsun-highlight-consumption,
.vsun-selected-capacity-card,
.vsun-calculation-preview {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    width: 100%;
    margin: 18px 0;
    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #fffdf6 0%,
            var(--vsun-primary-light) 100%
        );

    border: 1px solid rgba(245, 169, 0, 0.28);
    border-radius: var(--vsun-radius-lg);

    text-align: center;

    box-shadow: var(--vsun-shadow-sm);
}

.vsun-selected-capacity-card {
    max-width: 360px;
}

.vsun-highlight-consumption > span,
.vsun-selected-capacity-card > span,
.vsun-calculation-preview > span {
    color: var(--vsun-text-soft);

    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.7;
}

.vsun-highlight-consumption > strong,
.vsun-selected-capacity-card > strong,
.vsun-calculation-preview > strong {
    color: var(--vsun-primary-dark);

    font-size: 15px;
    font-weight: 900;
    line-height: 1.8;
}

.vsun-highlight-consumption b,
.vsun-selected-capacity-card b,
.vsun-calculation-preview b {
    font-size: 27px;
    font-weight: 950;
}

.vsun-calculation-preview p {
    max-width: 680px;
    margin: 3px 0 0;

    color: var(--vsun-muted);

    font-size: 11.8px;
    font-weight: 550;
    line-height: 1.9;
}

/* =========================================================
   DURATION OPTIONS
========================================================= */

.vsun-backup-duration-section {
    width: 100%;
    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid var(--vsun-border);
}

.vsun-duration-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 11px;

    width: 100%;
}

.vsun-duration-option {
    align-items: center !important;
    justify-content: center;

    min-height: 68px !important;
    padding: 13px !important;

    text-align: center !important;
}

.vsun-duration-option strong {
    padding: 0;

    font-size: 13.5px;
    font-weight: 850;
}

/* =========================================================
   STEP 5 SPECIAL APPLIANCE LIST
========================================================= */

.vsun-special-appliances-list {
    display: grid;

    gap: 13px;

    width: 100%;
    margin-top: 17px;
}

.vsun-special-appliance-row {
    width: 100%;
    padding: 15px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--vsun-surface-soft) 100%
        );

    border: 1px solid var(--vsun-border);
    border-radius: var(--vsun-radius-lg);

    box-shadow: var(--vsun-shadow-sm);

    transition:
        border-color var(--vsun-transition),
        box-shadow var(--vsun-transition),
        background var(--vsun-transition);
}

.vsun-special-appliance-row.selected {
    background:
        linear-gradient(
            135deg,
            #fffdf7 0%,
            var(--vsun-primary-light) 100%
        );

    border-color: rgba(245, 169, 0, 0.75);

    box-shadow:
        0 10px 26px rgba(245, 169, 0, 0.12);
}

.vsun-special-appliance-select {
    display: flex;
    align-items: center;

    gap: 10px;

    width: 100%;

    cursor: pointer;
}

.vsun-special-appliance-toggle {
    appearance: none;
    -webkit-appearance: none;

    position: relative;

    flex: 0 0 auto;

    width: 22px;
    height: 22px;
    margin: 0;

    background: #ffffff;

    border: 2px solid var(--vsun-border-dark);
    border-radius: 6px;

    cursor: pointer;

    transition:
        background var(--vsun-transition),
        border-color var(--vsun-transition),
        box-shadow var(--vsun-transition);
}

.vsun-special-appliance-toggle:checked {
    background: var(--vsun-success);
    border-color: var(--vsun-success);
}

.vsun-special-appliance-toggle:checked::after {
    content: "✓";

    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 14px;
    font-weight: 950;
    line-height: 1;
}

.vsun-special-appliance-toggle:focus-visible {
    outline: 3px solid rgba(7, 86, 184, 0.14);
    outline-offset: 2px;
}

.vsun-appliance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    background: #ffffff;

    border: 1px solid var(--vsun-border);
    border-radius: 50%;

    font-size: 19px;
    line-height: 1;
}

.vsun-special-appliance-select > strong {
    flex: 1;
    min-width: 0;

    color: var(--vsun-text);

    font-size: 14px;
    font-weight: 850;
    line-height: 1.8;
}

.vsun-special-appliance-fields {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 11px;

    width: 100%;
    margin-top: 14px;
    padding-top: 14px;

    border-top: 1px dashed var(--vsun-border-dark);
}

.vsun-special-appliance-fields > label {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-width: 0;
}

.vsun-special-appliance-fields > label > span {
    color: var(--vsun-muted);

    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.7;
}

.vsun-special-appliance-fields input:not([type="checkbox"]),
.vsun-special-appliance-fields select {
    width: 100%;
    min-height: 40px;

    padding: 8px 9px;

    background: #ffffff;
    color: var(--vsun-text);

    border: 1px solid var(--vsun-border-dark);
    border-radius: var(--vsun-radius-sm);

    font-size: 12px;
    font-weight: 600;

    outline: none;
}

.vsun-special-appliance-fields input:focus,
.vsun-special-appliance-fields select:focus {
    border-color: var(--vsun-secondary);

    box-shadow:
        0 0 0 3px rgba(7, 86, 184, 0.09);
}

.vsun-special-checkbox-field {
    justify-content: flex-end;
}

.vsun-special-checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;

    margin: 7px 0 0;

    accent-color: var(--vsun-success);

    cursor: pointer;
}

.vsun-special-appliance-result {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 18px;

    width: 100%;
    margin-top: 13px;
    padding: 10px 12px;

    background: #ffffff;

    border: 1px solid var(--vsun-border);
    border-radius: var(--vsun-radius-sm);
}

.vsun-special-appliance-result > span {
    color: var(--vsun-muted);

    font-size: 11.8px;
    font-weight: 650;
    line-height: 1.7;
}

.vsun-special-appliance-result strong {
    color: var(--vsun-secondary-dark);

    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   APPLIANCE TOTAL SUMMARY
========================================================= */

.vsun-special-appliances-summary {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 11px;

    width: 100%;
    margin-top: 17px;
}

.vsun-special-appliances-summary > div {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 14px;

    background: var(--vsun-secondary-light);

    border: 1px solid rgba(7, 86, 184, 0.13);
    border-radius: var(--vsun-radius-md);
}

.vsun-special-appliances-summary span {
    color: var(--vsun-muted);

    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.7;
}

.vsun-special-appliances-summary strong {
    color: var(--vsun-secondary-dark);

    font-size: 13px;
    font-weight: 850;
    line-height: 1.7;
}

.vsun-special-appliances-summary b {
    font-size: 19px;
    font-weight: 950;
}

/* =========================================================
   HYBRID SECTIONS
========================================================= */

.vsun-hybrid-equipment-section {
    width: 100%;
    margin-top: 21px;
    padding: 18px;

    background: var(--vsun-surface-soft);

    border: 1px solid var(--vsun-border);
    border-radius: var(--vsun-radius-lg);
}

.vsun-hybrid-equipment-section
.vsun-section-heading {
    margin-bottom: 12px;
}

.vsun-mini-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 8px;

    width: 100%;
    margin-top: 14px;
    padding: 11px 13px;

    background: #ffffff;

    border: 1px solid var(--vsun-border);
    border-radius: var(--vsun-radius-sm);
}

.vsun-mini-summary > span {
    color: var(--vsun-muted);

    font-size: 11.8px;
    font-weight: 700;
}

.vsun-mini-summary > strong {
    color: var(--vsun-secondary-dark);

    font-size: 12.5px;
    font-weight: 850;
}

.vsun-mini-summary b {
    font-size: 16px;
    font-weight: 950;
}

/* =========================================================
   INLINE ACTIONS
========================================================= */

.vsun-inline-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    width: 100%;
    margin-top: 15px;
}

.vsun-secondary-button,
.vsun-text-button {
    appearance: none;
    -webkit-appearance: none;

    min-height: 43px;
    padding: 9px 16px;

    border-radius: var(--vsun-radius-sm);

    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.6;

    cursor: pointer;

    transition:
        background var(--vsun-transition),
        border-color var(--vsun-transition),
        color var(--vsun-transition),
        transform var(--vsun-transition);
}

.vsun-secondary-button {
    background: var(--vsun-secondary);
    color: #ffffff;

    border: 1px solid var(--vsun-secondary);
}

.vsun-secondary-button:hover {
    background: var(--vsun-secondary-dark);
    border-color: var(--vsun-secondary-dark);

    transform: translateY(-1px);
}

.vsun-text-button {
    background: transparent;
    color: var(--vsun-secondary);

    border: 1px solid rgba(7, 86, 184, 0.25);
}

.vsun-text-button:hover {
    background: var(--vsun-secondary-light);

    border-color: var(--vsun-secondary);
}

/* =========================================================
   SUCCESS NOTE
========================================================= */

.vsun-success-note {
    width: 100%;
    margin-top: 13px;
    padding: 11px 13px;

    background: var(--vsun-success-light);
    color: var(--vsun-success);

    border: 1px solid rgba(21, 128, 61, 0.2);
    border-right: 4px solid var(--vsun-success);
    border-radius: var(--vsun-radius-sm);

    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.8;
}

/* =========================================================
   ERRORS
========================================================= */

.vsun-step-4 .vsun-step-error,
.vsun-step-5 .vsun-step-error {
    width: 100%;
    margin: 17px 0 0;
    padding: 12px 14px;

    background: var(--vsun-danger-light);
    color: var(--vsun-danger);

    border: 1px solid rgba(185, 28, 28, 0.2);
    border-right: 4px solid var(--vsun-danger);
    border-radius: var(--vsun-radius-sm);

    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.8;
}

/* =========================================================
   STEP ACTIONS
========================================================= */

.vsun-step-4 .vsun-step-actions,
.vsun-step-5 .vsun-step-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 100%;
    margin-top: 27px;
    padding-top: 20px;

    border-top: 1px solid var(--vsun-border);
}

.vsun-step-4 .vsun-next-button,
.vsun-step-5 .vsun-next-button {
    appearance: none;
    -webkit-appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;
    min-height: 48px;
    padding: 11px 22px;

    background:
        linear-gradient(
            135deg,
            var(--vsun-primary) 0%,
            #ffc33b 100%
        );

    color: #2d2100;

    border: 0;
    border-radius: var(--vsun-radius-md);

    font-size: 14px;
    font-weight: 900;
    line-height: 1.6;

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(245, 169, 0, 0.25);

    transition:
        transform var(--vsun-transition),
        box-shadow var(--vsun-transition),
        filter var(--vsun-transition);
}

.vsun-step-4 .vsun-next-button:hover,
.vsun-step-5 .vsun-next-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 30px rgba(245, 169, 0, 0.32);

    filter: brightness(1.02);
}

.vsun-step-4 .vsun-next-button:focus-visible,
.vsun-step-5 .vsun-next-button:focus-visible {
    outline: 3px solid rgba(7, 86, 184, 0.16);
    outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 900px) {

    .vsun-step-4-options,
    .vsun-step-5-options {
        grid-template-columns: 1fr;
    }

    .vsun-capacity-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .vsun-capacity-special-options {
        grid-template-columns: 1fr;
    }

    .vsun-form-grid {
        grid-template-columns: 1fr;
    }

    .vsun-duration-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .vsun-special-appliance-fields {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 650px) {

    .vsun-step-context {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;

        padding: 12px 13px;
    }

    .vsun-branch-header,
    .vsun-section-heading {
        gap: 11px;
    }

    .vsun-branch-icon {
        width: 44px;
        height: 44px;

        font-size: 21px;
    }

    .vsun-section-icon {
        width: 39px;
        height: 39px;

        font-size: 18px;
    }

    .vsun-branch-header h3,
    .vsun-section-heading h3 {
        font-size: 16px;
    }

    .vsun-section-heading h4 {
        font-size: 15px;
    }

    .vsun-branch-header p,
    .vsun-section-heading p {
        font-size: 12.5px;
    }

    .vsun-step-4 .choice,
    .vsun-step-5 .choice {
        gap: 10px;

        padding: 14px;

        border-radius: var(--vsun-radius-md);
    }

    .vsun-step-4-option,
    .vsun-step-5-option {
        min-height: 105px;
    }

    .vsun-choice-icon {
        width: 36px;
        min-height: 36px;

        font-size: 21px;
    }

    .vsun-choice-title {
        font-size: 13.5px;
    }

    .vsun-choice-description {
        font-size: 11.8px;
    }

    .vsun-choice-note {
        font-size: 11px;
    }

    .vsun-capacity-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .vsun-capacity-option {
        min-height: 64px !important;
    }

    .vsun-duration-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .vsun-duration-option {
        min-height: 60px !important;
    }

    .vsun-consumption-summary-card {
        grid-template-columns: 1fr;
    }

    .vsun-special-appliances-summary {
        grid-template-columns: 1fr;
    }

    .vsun-special-appliance-row {
        padding: 13px;
    }

    .vsun-special-appliance-fields {
        grid-template-columns: 1fr;
    }

    .vsun-special-appliance-result {
        flex-direction: column;

        gap: 5px;
    }

    .vsun-highlight-consumption,
    .vsun-selected-capacity-card,
    .vsun-calculation-preview {
        padding: 16px 12px;
    }

    .vsun-highlight-consumption b,
    .vsun-selected-capacity-card b,
    .vsun-calculation-preview b {
        font-size: 23px;
    }

    .vsun-hybrid-equipment-section {
        padding: 14px;
    }

    .vsun-inline-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .vsun-secondary-button,
    .vsun-text-button {
        width: 100%;
    }

    .vsun-step-4 .vsun-step-actions,
    .vsun-step-5 .vsun-step-actions {
        justify-content: stretch;
    }

    .vsun-step-4 .vsun-next-button,
    .vsun-step-5 .vsun-next-button {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media screen and (max-width: 390px) {

    .vsun-step-4 .choice,
    .vsun-step-5 .choice {
        padding: 12px;
    }

    .vsun-choice-icon {
        width: 31px;

        font-size: 19px;
    }

    .vsun-capacity-grid,
    .vsun-duration-grid {
        grid-template-columns: 1fr;
    }

    .vsun-special-appliance-select {
        align-items: flex-start;
    }

    .vsun-appliance-icon {
        width: 34px;
        height: 34px;

        font-size: 17px;
    }

    .vsun-special-appliance-select > strong {
        font-size: 12.8px;
    }

    .vsun-mini-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .vsun-step-4 *,
    .vsun-step-5 * {
        scroll-behavior: auto !important;
    }

    .vsun-step-4 .choice,
    .vsun-step-5 .choice,
    .vsun-step-4 .vsun-next-button,
    .vsun-step-5 .vsun-next-button,
    .vsun-secondary-button,
    .vsun-text-button {
        transition: none;
    }

    .vsun-step-4 .choice:hover,
    .vsun-step-5 .choice:hover,
    .vsun-step-4 .choice.selected,
    .vsun-step-5 .choice.selected,
    .vsun-step-4 .vsun-next-button:hover,
    .vsun-step-5 .vsun-next-button:hover {
        transform: none;
    }
}

/* =========================================================
   STEP 5 — EXTENDED EQUIPMENT DETAILS
========================================================= */

.vsun-special-field-wide {
    grid-column: span 2;
}

.vsun-special-appliance-fields input[type="text"],
.vsun-special-appliance-fields input[type="time"] {
    direction: rtl;
}

.vsun-special-appliance-fields input[type="time"] {
    direction: ltr;
    text-align: center;
}

.vsun-required-mark {
    display: inline-block;
    margin-right: 4px;
    color: var(--vsun-danger);
    font-weight: 950;
}

.vsun-field-help {
    margin: 7px 0 0;
    color: var(--vsun-muted);
    font-size: 11.5px;
    font-weight: 550;
    line-height: 1.8;
}

#vsun-large-project-land-area-group.is-required
.vsun-input-with-unit {
    border-color: rgba(185, 28, 28, 0.42);
}

@media screen and (max-width: 650px) {

    .vsun-special-field-wide {
        grid-column: auto;
    }
}
