* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #1c3d5c;
    text-decoration: underline;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.form-pane, .preview-pane {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    color: #1c3d5c;
    margin-bottom: 1.5rem;
    font-family: kit-sans, sans-serif;
    font-weight: 900;
    font-style: normal;
}

h2 {
    color: #1c3d5c;
    margin-bottom: 2rem;
    font-family: kit-sans, sans-serif;
    font-weight: 900;
    font-style: normal;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-family: sentinel, sans-serif;
    font-weight: 400;
    font-style: normal;
}

.required {
    color: #994c1d;
    font-weight: bold;
}

.input-error {
    border: 2px solid #994c1d !important;
    background-color: #fff6f6;
}

.error-msg {
    color: #994c1d;
    font-size: 0.95em;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    font-family: sentinel, sans-serif;
}

input, select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.important {
    color: #994c1d;
}

select {
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 2rem;
}

button {
    background-color: #529766;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.copy-button {
    margin-top: 2rem;
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 6px;
}

.email-client-links {
    margin-top: 2rem;
}

.email-client-links h3 {
    color: #1c3d5c;
    margin-bottom: 1rem;
}

.email-client-links .email-client-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    max-width: 800px;
    margin: 20px auto 0;
    padding: 0;
}

.email-client-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s;
    border: 1px solid transparent;
    min-height: 100px;
    justify-content: flex-start;
    text-align: left;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .email-client-links .email-client-links {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
    }
    
    .email-client-link {
        min-height: auto;
    }
}

.email-client-link:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

#modalContent {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    min-height: 200px;
}

#signaturePreview {
    border: none;
    min-height: 100px;
}

#signaturePreview h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

#signaturePreview p {
    margin: 0.5rem 0;
    color: #666;
}

#signaturePreview a {
    color: #1c3d5c;
    text-decoration: underline;
}

#signaturePreview a:hover {
    text-decoration: underline;
}

#formInstructions {
    color: #3c414b;
    margin-bottom: 1rem;
}

.email-client-icon {
    height: 75px;
    display: block;
    margin: 0 auto;
}

#formInstructions {
    font-family: sentinel, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem;
}