:root {
    --primary-color: #0070f3;
    --primary-hover: #0051a2;
    --background-color: #f9fafb;
    --card-background: #ffffff;
    --text-color: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --focus-ring: 0 0 0 3px rgba(0, 112, 243, 0.5);
    --error-color: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

.card {
    background-color: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

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

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--card-background);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    position: relative;
    top: -4px;
}

.hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.btn {
    background: #0f265c; /* Set to your desired hex color */
    color: white;        /* Text color */
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn:hover {
    background: #00a5be; /* Darker shade for hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn:active {
    background: #007a89; /* Even darker shade for active state */
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 734px) {
    .btn {
        font-size: 1rem;
    }
}

.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Remove the red border for invalid inputs */
input:invalid {
    border-color: var(--border-color);
}

/* Style for invalid inputs after form submission */
.was-validated input:invalid {
    border-color: var(--error-color);
}

#email-preview h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#email-preview .card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow: auto; /* Ensure content fits within the card */
}

#email-preview pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f8f8;
    border: 1px solid #e1e1e1;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 0.875rem;
}

#email-preview #preview-body a {
    color: var(--primary-color);
    text-decoration: none;
}

#email-preview #preview-body a:hover {
    text-decoration: underline;
}

input::placeholder,
textarea::placeholder {
    opacity: 0.3; /* Adjust opacity as desired (0 to 1) */
    color: #000;   /* Optional: Set a specific color */
}

#inform_customer {
    accent-color: #0f265c;
}
