/* Enhanced Contact Form Styling */
.contact-right .form-wrap {
    background: linear-gradient(135deg, rgba(138, 147, 255, 0.05) 0%, rgba(249, 244, 255, 0.8) 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(138, 147, 255, 0.15);
    backdrop-filter: blur(10px);
}

.form-grp {
    position: relative;
    margin-bottom: 30px;
}

.form-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(138, 147, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
}

/* Remove Chrome autofill styling */
.form-field:-webkit-autofill,
.form-field:-webkit-autofill:hover,
.form-field:-webkit-autofill:focus,
.form-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-field:focus {
    border-color: #169393;
    background: #fff;
    box-shadow: 0 4px 20px rgba(138, 147, 255, 0.2);
    transform: translateY(-2px);
}

.form-field:focus + .form-label,
.form-field:not(:placeholder-shown) + .form-label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: #169393;
    background: #fff;
    padding: 0 8px;
}

.form-label {
    position: absolute;
    top: 18px;
    left: 20px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

textarea.form-field {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

.button-gradient {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #169393 0%, #6B75E8 100%);
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(138, 147, 255, 0.3);
    border: none;
    cursor: pointer;
}

.button-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(138, 147, 255, 0.4);
    background: linear-gradient(135deg, #6B75E8 0%, #5A64D7 100%);
}

.button-gradient:active {
    transform: translateY(-1px);
}

.button-gradient img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-right .form-wrap {
        padding: 30px 20px;
    }
    
    .form-field {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .button-gradient {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
    }
}

/* Loading state */
.button-gradient[style*="opacity: 0.6"] {
    cursor: not-allowed;
    position: relative;
}

.button-gradient[style*="opacity: 0.6"]::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    right: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
