.energy-form {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 24px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #000;
    background: #fff;
    box-sizing: border-box;
}

.success-message {
    max-width: 1200px;
    margin: 30px auto;
    padding: 18px 22px;
    background: #eef6df;
    border: 1px solid #ABC987;
    border-radius: 6px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
}

.energy-form h1 {
    font-size: 48px;
    color: #27204d;
    margin: 30px 0 42px;
    line-height: 1.1;
    font-weight: 700;
}

.energy-form h2 {
    font-size: 28px;
    color: #000;
    margin-top: 42px;
    margin-bottom: 22px;
    font-weight: 700;
}

.energy-form h3 {
    font-size: 20px;
    margin-top: 38px;
    margin-bottom: 14px;
    color: #000;
    font-weight: 700;
}

.energy-form p,
.energy-form label {
    font-size: 17px;
    line-height: 1.7;
    color: #000;
}

.energy-form p {
    margin-bottom: 22px;
}

.energy-form span {
    color: #d12200;
}

.energy-form hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 32px 0;
}

.energy-form input,
.energy-form select,
.energy-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: none;
    background: #f7f8f9;
    color: #000;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.energy-form select {
    cursor: pointer;
}

.energy-form textarea {
    min-height: 260px;
    resize: vertical;
}

.energy-form input[type="checkbox"],
.energy-form input[type="radio"] {
    width: auto;
    min-height: auto;
    margin-right: 8px;
    margin-bottom: 0;
}

.energy-form label {
    display: block;
    margin: 10px 0;
}

/* Progress */

.progress {
    width: 100%;
    height: 18px;
    background: #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: #ABC987;
    color: #000;
    text-align: right;
    padding-right: 10px;
    line-height: 18px;
    font-size: 12px;
    font-weight: 700;
    box-sizing: border-box;
}

/* Steps */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Grids */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 24px;
    margin-bottom: 18px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Billing / address block */

.billing-grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px 32px;
    margin-bottom: 28px;
}

.billing-grid .full {
    grid-column: 1 / -1;
}

.address-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px 36px;
    margin-bottom: 28px;
}

.billing-address {
    margin-top: 6px;
}

.billing-grid label,
.address-grid label {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Upload */

.upload-extra-row {
    margin-top: 24px;
}

.upload-box {
    min-height: 130px;
    border: 1px dashed #bbb;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 22px;
    cursor: pointer;
    box-sizing: border-box;
}

.upload-box input {
    display: none;
}

.upload-box strong {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
}

.upload-box em {
    background: #ABC987;
    color: #27204d;
    padding: 10px 24px;
    border-radius: 25px;
    font-style: normal;
    font-weight: 700;
}

.hint {
    font-size: 13px !important;
    color: #333 !important;
}

.hidden {
    display: none !important;
}

.file-info {
    margin-top: 10px;
    margin-bottom: 18px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eef6df;
    border: 1px solid #ABC987;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
}

.remove-file-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #888;
    background: #fff;
    color: #000;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* Buttons */

.energy-form .form-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    margin-top: 34px !important;
    margin-bottom: 45px !important;
}

.energy-form .back-btn,
.energy-form .next-btn,
.energy-form .submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 118px !important;
    height: 50px !important;

    padding: 0 28px !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 5px !important;

    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.energy-form .back-btn {
    background: #f3f3f3 !important;
    color: #000 !important;
}

.energy-form .next-btn,
.energy-form .submit-btn {
    background: #ABC987 !important;
    color: #27204d !important;
}

.energy-form .back-btn:hover {
    background: #e8e8e8 !important;
}

.energy-form .next-btn:hover,
.energy-form .submit-btn:hover {
    background: #9fbd78 !important;
}

/* Falls alte Buttons ohne form-actions stehen */

.energy-form > .back-btn,
.energy-form > .next-btn,
.energy-form > .submit-btn,
.form-step > .back-btn,
.form-step > .next-btn,
.form-step > .submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 118px !important;
    height: 50px !important;
    padding: 0 28px !important;
    border-radius: 5px !important;
    margin-top: 30px !important;
    margin-right: 14px !important;
}

/* Grundriss block */

.grundriss-section {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 45px;
    align-items: flex-start;
    margin-top: 10px;
    margin-bottom: 32px;
}

.grundriss-left {
    min-width: 0;
}

.grundriss-left p {
    margin-bottom: 22px;
}

.grundriss-right {
    min-width: 0;
}

.grundriss-image {
    width: 100%;
    max-width: 760px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Validation errors */

.energy-form .field-error,
.energy-form input.field-error,
.energy-form select.field-error,
.energy-form textarea.field-error {
    border: 2px solid #d12200 !important;
    background: #fff4f1 !important;
    outline: none !important;
}

.energy-form .upload-box.field-error {
    border: 2px dashed #d12200 !important;
    background: #fff4f1 !important;
}

.energy-form label.field-error,
.energy-form h3.field-error {
    color: #d12200 !important;
}

.energy-error-message {
    color: #d12200;
    font-size: 14px;
    font-weight: 700;
    margin-top: -8px;
    margin-bottom: 16px;
}

.upload-box + .energy-error-message,
.energy-form h3.field-error + .energy-error-message,
.energy-form label.field-error + .energy-error-message {
    margin-top: 8px;
}

.energy-form-error-box {
    background: #fff4f1;
    border: 1px solid #d12200;
    color: #d12200;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 900px) {
    .grundriss-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .grundriss-image {
        max-width: 100%;
    }
}

@media (max-width: 850px) {
    .energy-form {
        padding: 0 16px;
        font-size: 16px;
    }

    .energy-form h1 {
        font-size: 34px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .billing-grid,
    .address-grid {
        grid-template-columns: 1fr;
    }

    .energy-form .form-actions {
        gap: 12px !important;
    }

    .energy-form .back-btn,
    .energy-form .next-btn,
    .energy-form .submit-btn {
        min-width: 110px !important;
        font-size: 20px !important;
    }
}