/* Contact Form Widget Styles */

.modern-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
    z-index: 10;
    max-width: 100%;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2563eb;
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-header p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: #6b7280;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus ~ label,
.input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    left: 15px;
    font-size: 0.85rem;
    padding: 0 5px;
    background-color: #fff;
    color: #2563eb;
}

.input-group textarea {
    height: 150px;
    resize: none;
}

.input-group .icon {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.input-group input:focus ~ .icon,
.input-group textarea:focus ~ .icon {
    color: #2563eb;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.success-message {
    background-color: #ecfdf5;
    color: #065f46;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.5s ease;
}

.error-message {
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.5s ease;
}

/* Input group error state */
.input-group.error input,
.input-group.error textarea {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.input-group.error label {
    color: #ef4444;
}

.input-group.error .icon {
    color: #ef4444;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .modern-form {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
}