body {
    margin: 0;
    background: #f5f7fa;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.top-nav {
    background: #0d6efd;
    color: white;
    padding: 14px 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.16);
}

.nav-home {
    color: white;
    text-decoration: none;
    font-weight: bold;
    justify-self: start;
}

.nav-home:hover {
    text-decoration: underline;
}

.nav-title {
    font-weight: bold;
    font-size: 17px;
    justify-self: center;
}

.nav-user {
    font-size: 14px;
    opacity: 0.9;
    justify-self: end;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

h1,
h2 {
    margin-top: 0;
}

h2 {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd3db;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    margin-top: 24px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 22px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #0b5ed7;
}

.output {
    border-left: 6px solid #0d6efd;
}

.output-section {
    margin-bottom: 45px;
}

.output-section:last-child {
    margin-bottom: 0;
}

.subject-output {
    background: #f8f9fa;
    border: 1px solid #ccd3db;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
}

.button-row {
    margin-top: 18px;
}

.subject-button {
    background: #6f42c1;
}

.subject-button:hover {
    background: #5a32a3;
}

.mail-output {
    line-height: 1.7;
}

.mail-output strong {
    font-size: 1.05em;
}

@media (max-width: 700px) {
    .top-nav {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: center;
    }

    .nav-home,
    .nav-title,
    .nav-user {
        justify-self: center;
    }
}