/* =====================================================
   FRONTEND - ZGŁOSZENIE
===================================================== */

.zgloszenie-page {
    background: #fff;
    padding: 45px 20px;
    color: #24206b;
    font-family: Arial, Helvetica, sans-serif;
}

.zgloszenie-container {
    max-width: 1180px;
    margin: 0 auto;
    border: 1px solid #dedee5;
    border-radius: 30px;
    padding: 50px;
    box-sizing: border-box;
}

.zgloszenie-container h3 {
    color: #24206b;
    font-size: 25px;
    line-height: 1.2;
    margin: 0 0 25px;
    font-weight: 800;
}

.field-label-custom {
    color: #24206b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row-3 .field {
    width: 33.333%;
}

.form-row-2 .field {
    width: 50%;
}

.zgloszenie-container .field {
    margin-bottom: 22px;
}

.zgloszenie-container label {
    display: block;
    color: #24206b;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.zgloszenie-container input[type="text"],
.zgloszenie-container input[type="email"],
.zgloszenie-container input[type="number"],
.zgloszenie-container textarea {
    width: 100%;
    min-height: 57px;
    box-sizing: border-box;
    border: 1px solid #d8d8df;
    border-radius: 15px;
    background: #fff;
    padding: 15px 18px;
    color: #24206b;
    font-size: 16px;
    outline: none;
}

.zgloszenie-container textarea {
    min-height: 100px;
    resize: vertical;
}

.zgloszenie-container input:focus,
.zgloszenie-container textarea:focus {
    border-color: #29237a;
}

.damage-coverage {
    margin-bottom: 25px;
}

.damage-coverage ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.damage-coverage li {
    margin: 0;
    list-style: none;
}

.damage-coverage label {
    display: inline-flex;
    align-items: center;
    min-height: 53px;
    border: 1px solid #d8d8df;
    border-radius: 30px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
}

.damage-coverage input {
    margin-right: 10px;
}

.damage-coverage input:checked + span {
    color: #fff;
}

.car-damage-wrapper {
    margin: 30px 0 30px;
}

.car-damage-instruction {
    color: #24206b;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.car-damage-map {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    cursor: crosshair;
}

.car-damage-map img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.damage-points-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.damage-point {
    position: absolute;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    margin-top: -17px;
    padding: 0;
    border-radius: 50%;
    background: #00d4d5;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
    cursor: pointer;
    pointer-events: auto;
    z-index: 20;
    transition: transform .15s ease;
}

.damage-point:hover {
    transform: scale(1.15);
}

.damage-point-number {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #24206b;
    font-size: 14px;
    font-weight: 800;
}

.damage-editor {
    position: absolute;
    z-index: 100;
    width: 280px;
    transform: translate(-50%, 25px);
    padding: 18px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.damage-editor-title {
    color: #24206b;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.damage-editor textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    box-sizing: border-box;
    resize: none;
    border: 1px solid #d5d5dd;
    border-radius: 12px;
    color: #24206b;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.damage-editor-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.damage-editor-buttons button {
    border: 0;
    border-radius: 25px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.damage-editor-save {
    background: #00d4d5;
    color: #24206b;
    flex: 1;
}

.damage-editor-cancel {
    background: #eee;
    color: #444;
}

.damage-points-list {
    max-width: 760px;
    margin: 15px auto 0;
}

.damage-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f6f6fb;
    border-radius: 12px;
}

.damage-list-number {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #00d4d5;
    color: #24206b;
    font-size: 13px;
    font-weight: 800;
}

.damage-list-content {
    flex: 1;
    min-width: 0;
}

.damage-list-content strong {
    display: block;
    color: #24206b;
    font-size: 14px;
    margin-bottom: 3px;
}

.damage-list-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.damage-list-remove {
    border: 0;
    background: transparent;
    color: #c33;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.damage-points-info {
    color: #777;
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
}

.photo-upload {
    position: relative;
    border: 1px dashed #aaaabe;
    border-radius: 20px;
    background: #f8f8fc;
    min-height: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 15px 0 40px;
    cursor: pointer;
}

.photo-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-upload-icon {
    color: #24206b;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.photo-upload-title {
    color: #24206b;
    font-size: 17px;
    font-weight: 800;
    margin-top: 8px;
}

.photo-upload-subtitle {
    color: #777;
    font-size: 13px;
    margin-top: 8px;
}

#photos-preview {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.photo-preview {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.consent-field {
    margin-top: 5px;
}

.consent-field label {
    display: flex !important;
    align-items: flex-start;
    font-weight: 400 !important;
    color: #555 !important;
    line-height: 1.5;
}

.consent-field input {
    margin: 3px 10px 0 0;
}

.submit-button {
    margin-top: 25px;
    padding: 20px;
    border-radius: 25px;
    background: #00A5A0;
    border: none;
    color: #fff;
    font-size: 16px;
     transition: all 0.3s ease; /* smooth transition */
    transform: scale(1);
}

.submit-button:hover {
    transform: scale(1.1);
    
}

.submit-button input,
.submit-button button {
    border: 0;
    border-radius: 35px;
    background: #00d4d5;
    color: #24206b;
    font-size: 18px;
    font-weight: 800;
    padding: 18px 42px;
    cursor: pointer;
}

.zgloszenie-success {
    background: #e8ffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    color: #24206b;
    font-size: 17px;
}

@media (max-width: 700px) {
    .zgloszenie-container {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .form-row {
        display: block;
    }

    .form-row-3 .field,
    .form-row-2 .field {
        width: 100%;
    }

    .damage-coverage ul {
        display: block;
    }

    .damage-coverage li {
        margin-bottom: 8px;
    }

    .damage-coverage label {
        width: 100%;
    }

    .damage-editor {
        width: 250px;
    }

    .damage-point {
        width: 30px;
        height: 30px;
        margin-left: -15px;
        margin-top: -15px;
    }
}
