/* Appointment Form Styles */
.appointment-form {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.appointment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #021935, #0a4b9e);
}

.appointment-form .form-border {
    position: relative;
}

.appointment-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.appointment-form label {
    font-weight: 600;
    color: #021935;
    margin-bottom: 8px;
    display: block;
}

.appointment-form .form-control {
    height: 65px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.appointment-form .form-control:focus {
    border-color: #021935;
    box-shadow: 0 0 0 0.2rem rgba(2, 25, 53, 0.15);
}

.appointment-form textarea.form-control {
    height: auto;
}

.appointment-form .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2em;
}

.appointment-form .form-check-label {
    padding-left: 5px;
    font-size: 14px;
}

.appointment-form .btn {
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Date picker styling */
.appointment-form input[type="date"] {
    position: relative;
    color: #021935;
}

.appointment-form input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 24 24"><path fill="%23021935" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>');
    cursor: pointer;
    opacity: 0.8;
}

/* Confirmation Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(2, 25, 53, 0.1);
    background-color: #f8f9fa;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-title {
    color: #021935;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
}

.confirmation-message h4 {
    color: #021935;
    margin-top: 15px;
    font-weight: 700;
}

.confirmation-message p {
    color: #666;
    margin-bottom: 20px;
}

.appointment-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.appointment-details .row {
    margin-bottom: 5px;
}

.modal-footer {
    border-top: none;
    padding: 15px 30px 25px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .appointment-form {
        padding: 25px 20px;
    }
    
    .appointment-form::before {
        width: 3px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
}

/* Animation for form submission */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 25, 53, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(2, 25, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(2, 25, 53, 0);
    }
}

.appointment-form .btn:hover {
    animation: pulse 1.5s infinite;
}

/* Select Element Styling */
select.form-control {
    height: 50px;
    line-height: 48px;
    border-radius: 8px;
    padding: 0 15px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23021935" d="M10.293,3.293,6,7.586,1.707,3.293A1,1,0,0,0,.293,4.707l5,5a1,1,0,0,0,1.414,0l5-5a1,1,0,1,0-1.414-1.414Z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    color: #021935;
    font-weight: 500;
}

select.form-control:focus {
    border-color: #021935;
    box-shadow: 0 0 0 0.2rem rgba(2, 25, 53, 0.15);
}

select.form-control option {
    padding: 10px;
    font-weight: 500;
}

/* Form validation styling */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Form focus effect */
.form-group.focused label {
    color: #0a4b9e;
}
