:root {
    --primary: #4f46e5;
    --background: #f9fafb;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-hero {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-container {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    /* Optional: for better visibility */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-card input,
.contact-card textarea {
    padding: 10px;
    margin-bottom: 15px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-card button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.error-message {
    color: red;
    font-size: 0.9em;
}

.email-direct {
    margin-top: 20px;
    text-align: center;
}

.email-link {
    color: #007bff;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}


.contact-card button:hover {
    background-color: #0056b3;
}


.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
}

.email-direct {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.email-direct p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.email-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
        margin-top: -2rem;
    }
}

.notification {
    position: fixed;
    top: 10px; /* Adjust this value to ensure it's below the header */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Ensures it appears above other elements */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.notification.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

/*.notification.show {*/
/*    transform: translateX(0);*/
/*}*/

.form-group {
    position: relative;
}

.form-group label {
    font-size: 0.9rem;
    color: #4b5563;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .contact-hero {
        padding: 3rem 1rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-container {
        margin: -2rem auto 2rem;
        padding: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .notification {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}