/**
 * Provider Registration Form Styles
 *
 * @package Rigtig_For_Mig
 * @since 4.0.0
 */

.rfm-provider-registration-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.rfm-provider-registration-wrapper .rfm-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.rfm-provider-registration-wrapper .rfm-form-subtitle {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Fieldsets */
.rfm-provider-registration-wrapper .rfm-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.rfm-provider-registration-wrapper .rfm-fieldset legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    padding: 0 0.75rem;
}

/* Form rows */
.rfm-form-row {
    margin-bottom: 1rem;
}

.rfm-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .rfm-form-row-two {
        grid-template-columns: 1fr;
    }
}

/* Form groups */
.rfm-form-group {
    display: flex;
    flex-direction: column;
}

.rfm-form-group label {
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.rfm-form-group label .required {
    color: #e53e3e;
}

/* Inputs */
.rfm-provider-registration-wrapper input[type="text"],
.rfm-provider-registration-wrapper input[type="email"],
.rfm-provider-registration-wrapper input[type="tel"],
.rfm-provider-registration-wrapper input[type="url"],
.rfm-provider-registration-wrapper input[type="password"],
.rfm-provider-registration-wrapper select,
.rfm-provider-registration-wrapper textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.rfm-provider-registration-wrapper input:focus,
.rfm-provider-registration-wrapper select:focus,
.rfm-provider-registration-wrapper textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.rfm-provider-registration-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

.rfm-provider-registration-wrapper input[type="file"] {
    padding: 0.5rem;
    border: 1px dashed #cbd5e0;
    border-radius: 6px;
    background: #f7fafc;
    cursor: pointer;
}

/* Field hints */
.rfm-field-hint {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.25rem;
}

/* Error state */
.rfm-field-error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

/* Checkbox grid (categories) */
.rfm-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.rfm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
    cursor: pointer;
}

.rfm-checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* GDPR */
.rfm-gdpr-checkbox {
    font-size: 0.9rem;
    line-height: 1.4;
}

.rfm-gdpr-checkbox a {
    color: #4299e1;
    text-decoration: underline;
}

/* Messages */
.rfm-form-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rfm-message-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #276749;
}

.rfm-message-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #9b2c2c;
}

/* Submit button */
.rfm-btn {
    display: inline-block;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s, transform 0.1s;
}

.rfm-btn:active {
    transform: translateY(1px);
}

.rfm-btn-primary {
    background-color: #4299e1;
    color: #fff;
}

.rfm-btn-primary:hover {
    background-color: #3182ce;
}

.rfm-btn-primary:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.rfm-btn-lg {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
}

/* Login link */
.rfm-form-login-link {
    text-align: center;
    margin-top: 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.rfm-form-login-link a {
    color: #4299e1;
    text-decoration: underline;
}

/* Notice */
.rfm-notice {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.rfm-notice-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
}

.rfm-notice a {
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: underline;
}
