/**
 * Growpoint Frontend Styles
 */

.growpoint-lead-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.growpoint-form-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

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

.growpoint-form-field {
    display: flex;
    flex-direction: column;
}

.growpoint-form-field label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.growpoint-form-field .required {
    color: #e74c3c;
}

.growpoint-form-field input[type="text"],
.growpoint-form-field input[type="email"],
.growpoint-form-field input[type="tel"],
.growpoint-form-field textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.growpoint-form-field input:focus,
.growpoint-form-field textarea:focus {
    outline: none;
    border-color: #3498db;
}

.growpoint-submit-btn {
    padding: 14px 30px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.growpoint-submit-btn:hover {
    background: #2980b9;
}

.growpoint-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.growpoint-form-messages {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.growpoint-form-messages.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.growpoint-form-messages.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state */
.growpoint-lead-form.loading .growpoint-submit-btn {
    position: relative;
    color: transparent;
}

.growpoint-lead-form.loading .growpoint-submit-btn::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: growpoint-spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .growpoint-lead-form-wrapper {
        padding: 20px;
    }

    .growpoint-form-title {
        font-size: 20px;
    }
}
