.energy-form {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 24px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    color: #000 !important;
    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 {
    color: #000;
    font-size: 22px;
    margin-top: 38px;
    margin-bottom: 16px;
    font-weight: 700;
}

.energy-form p,
.energy-form label {
    font-size: 17px;
    line-height: 1.7;
    color: #000 !important;
}

.energy-form p {
    margin-bottom: 22px;
}

.energy-form label,
.energy-form label span,
.energy-form .radio-label,
.energy-form .radio-label span {
    color: #000 !important;
    opacity: 1 !important;
}

.energy-form label {
    display: block;
    margin: 10px 0;
}

.energy-form .inline {
    display: inline-block;
    margin-right: 18px;
}

.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 {
    height: 48px;
    cursor: pointer;
}

.energy-form textarea {
    min-height: 260px;
    resize: vertical;
}

.energy-form input[type="radio"],
.energy-form input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin-right: 8px;
    margin-bottom: 0;
    transform: scale(1.05);
}

.energy-form .required {
    color: #d12200;
}

.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;
}

.box,
.grey-box {
    background: #f3f3f3;
    padding: 26px;
    margin: 22px 0;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-title {
    background: #f1f5e8;
    color: #27204d;
    font-weight: 700;
    padding: 22px 30px;
    margin-bottom: 34px;
    font-size: 22px;
    border-left: 6px solid #ABC987;
}

.step,
.form-page,
.building-form {
    display: none;
}

.step.active,
.form-page.active {
    display: block;
}

.row,
.date-row,
.date-head {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 12px;
}

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

.date-head {
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.usage-row {
    display: grid;
    grid-template-columns: minmax(0, 2.6fr) minmax(160px, 1fr);
    gap: 32px;
    margin-bottom: 20px;
    align-items: end;
}

.usage-row select {
    width: 100%;
    min-width: 0;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
}

.address-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px 36px;
    margin-bottom: 42px;
}

.billing-grid {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 18px 32px;
}

.billing-grid .full {
    grid-column: 1 / -1;
}

.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;
    margin-bottom: 12px !important;
    color: #000 !important;
    border-radius: 6px;
}

.upload-box span {
    background: #ABC987;
    color: #27204d !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 700;
    margin-left: 6px;
}

.upload-box input {
    display: none;
}

.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;
    margin-bottom: 8px;
    color: #000;
    font-weight: 700;
    font-size: 14px;
}

.remove-file-btn {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #999 !important;
    border-radius: 50% !important;
    width: 26px;
    height: 26px;
    padding: 0 !important;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.energy-control {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 0 38px;
}

.energy-control span {
    margin-left: 12px;
    color: #000;
    font-size: 15px;
}

/* Buttons unten */

.form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
    margin-bottom: 36px;
}

.energy-form button,
.small-btn,
.main-btn,
.next-btn,
.back-btn,
.submit-btn {
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.small-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    background: #fff;
    color: #000;
    border: 1px solid #888;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

.back-btn,
.main-btn,
.next-btn,
.submit-btn {
    min-width: 118px;
    height: 50px;
    padding: 0 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    font-family: Arial, sans-serif;
    line-height: 50px;
    text-align: center;
}

.back-btn {
    background: #f3f3f3;
    color: #000 !important;
}

.main-btn,
.next-btn,
.submit-btn {
    background: #ABC987;
    color: #27204d !important;
}

.back-btn:hover {
    background: #e8e8e8;
}

.main-btn:hover,
.next-btn:hover,
.submit-btn:hover {
    background: #9fbd78;
}

.energy-form input[readonly],
.energy-form input.is-readonly {
    background: #e9ecef;
    color: #555;
}

.privacy-section {
    margin-top: 30px;
}

.big-textarea {
    min-height: 320px;
    background: #f7f7f7 !important;
    resize: vertical;
}

.privacy-text {
    font-size: 18px;
    line-height: 1.8;
    color: #000;
}

.privacy-check {
    font-size: 18px;
    margin-top: 26px;
    margin-bottom: 26px;
}

/* Validation */
.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;
}

.energy-form .upload-box.field-error,
.energy-form .box.field-error {
    border: 2px dashed #d12200 !important;
    background: #fff4f1 !important;
}

.energy-error-message {
    color: #d12200;
    font-size: 14px;
    font-weight: 700;
    margin-top: -8px;
    margin-bottom: 16px;
}

.energy-form-error-box {
    background: #fff4f1;
    border: 1px solid #d12200;
    color: #d12200;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 700;
}

@media (max-width: 850px) {
    .row,
    .row.two,
    .date-row,
    .date-head,
    .usage-row,
    .two-columns,
    .address-grid,
    .billing-grid {
        grid-template-columns: 1fr;
    }

    .energy-form {
        padding: 0 16px;
        font-size: 16px;
    }

    .energy-form h1 {
        font-size: 34px;
    }
}

/* Large photo upload blocks */
.upload-stack {
    display: flex;
    flex-direction: column;
    gap: 42px;
    margin-top: 24px;
    margin-bottom: 40px;
}

.upload-section h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #000 !important;
}

.upload-section .large-upload {
    width: 100%;
    min-height: 145px;
    height: auto;
    border: 1px dashed #bdbdbd;
    background: #f7f7f7;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 24px;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    border-radius: 0;
}

.upload-section .large-upload input[type="file"] {
    display: none;
}

.upload-box-inner {
    text-align: center;
}

.upload-text {
    font-size: 20px;
    color: #000;
    margin-bottom: 12px;
}

.upload-btn {
    display: inline-block;
    background: #ABC987;
    color: #1f2245;
    font-weight: 700;
    font-size: 20px;
    padding: 14px 28px;
    border-radius: 999px;
    line-height: 1;
}

.upload-section .file-info {
    margin-top: 16px;
    margin-bottom: 0;
}

.upload-section .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eef6df;
    border: 1px solid #ABC987;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    gap: 15px;
}

.upload-section .file-item span {
    color: #d12200 !important;
    font-size: 15px;
    font-weight: 700;
    word-break: break-word;
    flex: 1;
    padding-right: 12px;
}

.upload-section .remove-file-btn {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid #999 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 !important;
}

.energy-form .upload-section .large-upload.field-error {
    border: 2px dashed #d12200 !important;
    background: #fff4f1 !important;
}

/* Drag & Drop Upload active state */
.energy-form .upload-box.drag-over,
.energy-form .upload-section .large-upload.drag-over {
    border: 2px dashed #ABC987 !important;
    background: #eef6df !important;
}

.energy-form .upload-box.drag-over .upload-btn,
.energy-form .upload-section .large-upload.drag-over .upload-btn,
.energy-form .upload-box.drag-over span {
    background: #9fbd78 !important;
}
