.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: center; /* Align items to the center */
}

.label-container {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allow label container to take remaining space */
}

.form-group label {
    font-size: 1rem;
    color: var(--text-color);
    margin-right: 10px; /* Adjust spacing between label and underline */
}

.form-group input {
    border: none;
    outline: none;
    font-size: 1rem;
    background-color: transparent;
    margin-bottom: 5px;
    position: relative;
    flex-grow: 1; /* Allow input to take remaining space */
}

.underline {
    height: 1px;
    background-image: linear-gradient(to right, var(--primary-color) 33%, transparent 0%);
    background-position: bottom;
    background-size: 8px 1px;
    background-repeat: repeat-x;
    margin-bottom: -5px; /* Adjust this value to move the underline lower */
    flex-grow: 1; /* Allow underline to take remaining space */
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.submit-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.error-message {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

.email-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-background);
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.email-suggestions.active {
    display: block;
}

.email-suggestions li {
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.email-suggestions li:hover {
    background-color: #f0f0f0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        font-size: 0.9rem;
    }
}