body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top for longer forms */
    min-height: 100vh;
    margin: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.description, .email-note {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in element's total width and height */
    resize: vertical; /* Allow vertical resizing for textareas */
}

input:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

textarea[disabled] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #6c757d; /* Grey for save notes */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.button:hover {
    background-color: #5a6268;
}

.button.primary {
    background-color: #007bff; /* Blue for generate email */
    width: 100%;
    margin-top: 30px;
    margin-bottom: 15px;
}

.button.primary:hover {
    background-color: #0056b3;
}

.notes-display {
    background-color: #e0f7fa; /* Light blue background for saved notes */
    border: 1px solid #b2ebf2;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    white-space: pre-wrap; /* Preserve whitespace and line breaks */
    font-size: 0.95em;
    color: #3f51b5; /* Darker blue text for notes */
    max-height: 200px; /* Limit height for long notes */
    overflow-y: auto; /* Add scroll if notes are too long */
}

.email-note {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}