/* WhatsApp Contact Form Styles */

.whatsapp-contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wacf-title {
    font-size: 28px;
    font-weight: 700;
    color: #25D366;
    margin: 0 0 25px 0;
    text-align: center;
}

.wacf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wacf-field {
    display: flex;
    flex-direction: column;
}

.wacf-field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.wacf-field label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.wacf-field input,
.wacf-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.wacf-field input:focus,
.wacf-field textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wacf-field input::placeholder,
.wacf-field textarea::placeholder {
    color: #999;
}

.wacf-field textarea {
    resize: vertical;
    min-height: 120px;
}

.wacf-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wacf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.wacf-submit-btn:active {
    transform: translateY(0);
}

.wacf-submit-btn svg {
    width: 22px;
    height: 22px;
}

/* Error States */
.wacf-field input:invalid:not(:placeholder-shown),
.wacf-field textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

/* Loading State */
.wacf-form.loading .wacf-submit-btn {
    opacity: 0.7;
    pointer-events: none;
}

.wacf-form.loading .wacf-submit-btn::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-contact-form {
        padding: 20px;
        border-radius: 8px;
    }

    .wacf-title {
        font-size: 24px;
    }

    .wacf-field input,
    .wacf-field textarea {
        font-size: 14px;
    }

    .wacf-submit-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.wacf-form.success .wacf-submit-btn {
    background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
    animation: successPulse 0.4s ease;
}
