body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #f9f8fa, #fbfcfd);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.header {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #6a11cb;
    padding-bottom: 10px;
}

.content {
    display: flex;
    flex: 1;
    gap: 20px;
    flex-direction: row-reverse; /* Reversed order to align cover letter section to left */
}

.form-section {
    flex: 1; /* Adjusted to take less space */
}

.cover-letter-section {
    flex: 2; /* Adjusted to take more space */
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #6a11cb;
    outline: none;
}

.cover-letter-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    flex: 1;
}

.cover-letter-box textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    background: transparent;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.button-container {
    text-align: center;
    margin-top: -4px;
}

.button-container button {
    background-color: #6a11cb;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.button-container button:hover {
    background-color: #2575fc;
}
