body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 700px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

h1 {
    color: #005a9c;
    text-align: center;
    margin-bottom: 10px;
}

p {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

#cancellation-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.required {
    color: #d9534f;
    font-size: 0.9em;
    margin-left: 4px;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #005a9c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.2);
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: #d9534f;
}

textarea {
    resize: vertical;
}

small {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

legend {
    font-weight: bold;
    color: #005a9c;
    padding: 0 10px;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s, opacity 0.3s;
    margin-top: 10px;
}

button[type="submit"]:hover:not(:disabled) {
    background-color: #0056b3;
}

button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#form-status {
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
    padding: 15px;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#success-message {
    text-align: center;
    padding: 40px;
    border: 2px solid #28a745;
    background-color: #e9f7ef;
    border-radius: 8px;
}

#success-message h2 {
    color: #28a745;
}

#success-message button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

#success-message button:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.5em;
    }
}