/* Delivery Information Modal Styles */
.delivery-modal {
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.delivery-modal .modal-header {
    background: transparent;
    border-bottom: none;
    padding: 20px 30px 10px;
    position: relative;
}

.delivery-modal .modal-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    color: #333;
    width: 100%;
}

.delivery-modal .btn-close:hover {
    color: #333;
}

.delivery-modal .modal-body {
    padding: 20px 30px;
    background: #f5f5f5;
}

.delivery-modal .delivery-form {
    max-width: 100%;
}

.delivery-modal .form-section {
    margin-bottom: 25px;
}

.delivery-modal .section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}


/* Form Inputs */
.delivery-modal .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.delivery-modal .form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Address Section */
.delivery-modal .address-group {
    margin-bottom: 15px;
}

.delivery-modal .address-group:last-child {
    margin-bottom: 0;
}

.delivery-modal .address-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: normal;
}

/* Modal Footer */
.delivery-modal .modal-footer {
    background: transparent;
    border-top: none;
    padding: 20px 30px 30px;
    justify-content: center;
}

.delivery-modal .btn-submit {
    background: #ED8C33;
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}


/* Responsive Design */
@media (max-width: 768px) {
    .delivery-modal .modal-body {
        padding: 15px 20px;
    }
    
    .delivery-modal .modal-header {
        padding: 15px 20px 10px;
    }
    
    .delivery-modal .modal-footer {
        padding: 15px 20px 20px;
    }
    
    .delivery-modal .transport-options {
        flex-direction: column;
        gap: 20px;
    }
    
    .checkbox-group {
        gap: 15px;
    }
}

/* Override Bootstrap modal styles */
.delivery-modal .modal-dialog {
    margin: 30px auto;
}

.delivery-modal .modal-content {
    border: none;
    border-radius: 8px;
}

/* Ensure proper spacing */
.delivery-modal .modal-body .form-section:last-child {
    margin-bottom: 0;
}


/* Настрочки всех чекбоксов */
.custom-checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-checkbox + label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-checkbox + label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    flex-grow: 0;
    background-color: white;
    border: 1px solid #DBDECF;
    border-radius: 0.25em;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 80% 80%;
}

.custom-checkbox:checked + label::before {
    border-color: #CFD3BB;
    background-color: white;
    border: 1px solid #DBDECF;
    background-image: url("/static/order_cost_calculator/img/cheked.svg");
}


/* Inaccuracy report modal */
.inaccuracy-modal {
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.inaccuracy-modal .modal-header {
    background: transparent;
    border-bottom: none;
    padding: 20px 30px 10px;
}

.inaccuracy-modal .modal-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 0;
    color: #333;
    width: 100%;
}

.inaccuracy-modal .modal-body {
    padding: 20px 30px;
    background: #f5f5f5;
}

.inaccuracy-modal .form-section {
    margin-bottom: 20px;
}

.inaccuracy-modal .section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.inaccuracy-modal .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    box-sizing: border-box;
}

.inaccuracy-modal .inaccuracy-actions {
    display: flex;
    gap: 10px;
}

.inaccuracy-modal .btn-submit {
    background: #ED8C33;
    color: black;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.inaccuracy-modal .btn-submit.btn-no {
    background: #d9d9d9;
}