* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 20px;
}

.calendar {
    margin-top: 100px;
}

.appointment-form {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #1e3c72;
    font-size: 2em;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e3c72;
    font-weight: 500;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1e3c72;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 10px rgba(30, 60, 114, 0.2);
    outline: none;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-control.error {
    border-color: #e74c3c;
}

.form-control.success {
    border-color: #2ecc71;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: rgba(30, 60, 114, 0.1);
}

.time-slot.selected {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    text-align: center;
    margin: 2px;
}
.btn-back {
    background-color: orange;
}

.submit-btn:hover {
    background: #2a5298;
    transform: translateY(-2px);
    text-transform: none;
    color: white;
    text-decoration: none;
}

.success-message {
    display: none;
    text-align: center;
    color: #2ecc71;
    margin-top: 20px;
    font-size: 1.1em;
    padding: 10px;
    border-radius: 8px;
    background: rgba(46, 204, 113, 0.1);
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

@media (max-width: 480px) {
    .appointment-form {
        padding: 20px;
    }

    .form-header h2 {
        font-size: 1.5em;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.appointment {
    margin-top: 40px;
    margin-bottom: 40px;
}

