/* Basic styles for form */
.form-container {
    width: 90%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

h1 {
    font-size: 2rem;
    text-align: center;
}

label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

input[type="text"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* Popup styles */
.popup {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fd7c7c;
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.popup p {
    margin: 0;
    font-size: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 480px) {
    h1 {
        font-size: 1.25rem;
    }

    input[type="text"],
    select,
    input[type="submit"] {
        font-size: 0.875rem;
        padding: 8px;
    }

    .form-container {
        padding: 15px;
        margin: 20px auto;
    }

    .popup p {
        font-size: 1rem;
    }
}
