/* Callback button */
.callback-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background 0.3s;
}

.callback-btn:hover {
    background: #218838;
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    margin-left: auto;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #22AD46;
    background: #f5f5f5;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #000;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #22AD46;
    border-radius: 3px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #22AD46;
    background: white;
    box-shadow: 0 0 0 3px rgba(34, 173, 70, 0.15);
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;
    margin-top: 8px;
}

.time-slot {
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
    color: #4a5568;
}

.time-slot:hover {
    background: #f0fdf4;
    border-color: #22AD46;
    color: #059669;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: #22AD46;
    color: white;
    border-color: #1a8a36;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 173, 70, 0.3);
}

.time-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
}

.modal-police {
    font-size: 14px;
    text-align: center;
    margin: 15px 0 25px;
    color: #64748b;
    line-height: 1.5;
}

.modal-police a {
    color: #22AD46;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.modal-police a:hover {
    color: #1a8a36;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(to right, #22AD46, #0d6a2b);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(34, 173, 70, 0.4);
    margin-top: 5px;
}

.submit-btn:hover {
    background: linear-gradient(to right, #1a8a36, #0a5522);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 173, 70, 0.55);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Scrollbar for time slots */
.time-slots-container::-webkit-scrollbar {
    width: 6px;
}

.time-slots-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.time-slots-container::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

.time-slots-container::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Success Modal Styles */
.success-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.success-modal.show {
    display: flex !important;
}

.success-modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.success-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.success-modal-close:hover {
    color: black;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.success-modal h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 22px;
}

.success-modal p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.success-modal-btn {
    margin-top: 25px;
    padding: 12px 30px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.success-modal-btn:hover {
    background: #218838;
}

/* Cookie modal */
.cookie-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    padding: 20px;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.cookie-content p {
    color: #676760;
}
.cookie-content .button-container {
    display: flex;
    width: 100%;
}

.btn-cookie-modal {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.accept-btn {
    background: #28a745;
    color: white;
}

.reject-btn {
    background: #dc3545;
    color: white;
}

/* Responsive */
@media (max-width: 750px) {
    .callback-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px;
        font-size: 18px;
    }

    .modal-content {
        padding: 25px;
        margin: 15px;
    }

    .time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .time-slot {
        padding: 10px 5px;
        font-size: 14px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
