/* Enhanced Contact Form Styling */

/* Contact section background overlay adjustment */
#contact::before {
    background: linear-gradient(316deg, rgba(0, 120, 241, 0.85) 0%, rgba(0, 25, 41, 0.9) 100%);
}

/* Form container styling */
.contact-form-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0;
    position: relative;
    z-index: 10;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: white;
    transform: perspective(1000px) rotateY(0deg);
    transition: transform 0.6s ease;
}

.contact-form-container:hover {
    transform: perspective(1000px) rotateY(2deg);
}

.contact-form-container .section-title {
    padding: 1.8rem;
    margin: 0;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.8rem;
    width: 100%;
    text-align: center;
}

.contact-form-container .section-title::after {
    background: white;
    bottom: 15px;
}

#contact-form {
    background: white;
    padding: 2.5rem 3rem;
    max-width: 100%;
    box-shadow: none;
    margin: 0;
}

/* Input field styling */
.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    transform-origin: left;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e5ec;
    border-radius: 8px;
    background-color: #f9fafc;
    color: var(--dark-color);
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 81, 181, 0.1);
    outline: none;
}

.form-group input[type="text"]:focus + label,
.form-group input[type="email"]:focus + label,
.form-group textarea:focus + label {
    color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    border-radius: 8px;
}

/* Submit button styling */
#contact-form .cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

#contact-form .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

#contact-form .cta-button:active {
    transform: translateY(-1px);
}

#contact-form .cta-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

#contact-form .cta-button:hover::after {
    animation: button-shine 1.5s;
}

@keyframes button-shine {
    100% {
        transform: translateX(100%);
    }
}

/* Form field focus animation */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.form-group:focus-within::after {
    width: 100%;
    left: 0;
}

/* Contact details styling */
.contact-details {
    text-align: center;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
    position: relative;
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-form-container {
        margin: 2rem 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
}
