/* GG CRM Public Styles - Frontend Forms */
.gg-crm-public-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gg-crm-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.gg-crm-form-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.gg-crm-field-wrap {
    margin-bottom: 20px;
}

.gg-crm-field-wrap label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.gg-crm-field-wrap label .required {
    color: #ef4444;
    margin-left: 2px;
}

.gg-crm-field-wrap input[type="text"],
.gg-crm-field-wrap input[type="email"],
.gg-crm-field-wrap input[type="tel"],
.gg-crm-field-wrap input[type="phone"],
.gg-crm-field-wrap input[type="number"],
.gg-crm-field-wrap input[type="url"],
.gg-crm-field-wrap input[type="date"],
.gg-crm-field-wrap select,
.gg-crm-field-wrap textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.gg-crm-field-wrap input:focus,
.gg-crm-field-wrap select:focus,
.gg-crm-field-wrap textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.gg-crm-field-wrap textarea {
    resize: vertical;
    min-height: 100px;
}

.gg-crm-radio-label,
.gg-crm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    margin-bottom: 8px;
    cursor: pointer;
}

.gg-crm-radio-label input,
.gg-crm-checkbox-label input {
    width: auto !important;
}

.gg-crm-form-submit {
    margin-top: 24px;
}

.gg-crm-submit-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gg-crm-submit-btn:hover {
    background: #4338ca;
}

.gg-crm-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.gg-crm-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.gg-crm-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gg-crm-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Loading state */
.gg-crm-frontend-form.loading .gg-crm-submit-btn {
    position: relative;
    color: transparent;
}

.gg-crm-frontend-form.loading .gg-crm-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gg-spin 0.6s linear infinite;
}

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