/* style-form.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
    color: #333;
    margin: 0;
}

h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.5rem;
}

form {
    background: #fff;
    padding: 20px;
    max-width: 500px;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

select,
input[type="time"],
input[type="text"],
input[type="date"],
button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

#modal {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    opacity: 0;
    transition: all 0.4s ease-out;
}

#modal-content li {
    margin-bottom: 6px;
}

#overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.modal-close {
    background-color: #e74c3c;
    margin-top: 10px;
}

.modal-close:hover {
    background-color: #c0392b;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 30%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

#modal.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

#modal-icon {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
    color: #27ae60;
}

/* ==== RESPONSIVE === */
@media (max-width: 768px) {
    form {
        padding: 15px;
        margin: 10px;
    }

    h3 {
        font-size: 1.25rem;
    }

    button {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    form {
        padding: 10px;
        border-radius: 8px;
    }

    input, select, button {
        font-size: 0.9rem;
        padding: 8px;
    }

    h3 {
        font-size: 1.1rem;
    }

    #modal {
        padding: 15px;
    }
}
