/* PracticPro Frontend Form Styles */

.practicpro-form {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.practicpro-form-inner {
    padding: 0;
}

/* Field Rows */
.practicpro-row {
    margin-bottom: 16px;
}

.practicpro-row-half {
    display: flex;
    gap: 16px;
}

.practicpro-row-half > .practicpro-field {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .practicpro-row-half {
        flex-direction: column;
        gap: 16px;
    }
}

/* Field Wrapper */
.practicpro-field {
    display: flex;
    flex-direction: column;
}

.practicpro-field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.3;
}

.practicpro-required {
    color: #e74c3c;
}

/* Inputs */
.practicpro-field input[type="text"],
.practicpro-field input[type="email"],
.practicpro-field input[type="tel"],
.practicpro-field input[type="number"],
.practicpro-field textarea,
.practicpro-field select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.practicpro-field input:focus,
.practicpro-field textarea:focus,
.practicpro-field select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

.practicpro-field textarea {
    resize: vertical;
    min-height: 100px;
}

.practicpro-field select {
    appearance: auto;
    cursor: pointer;
}

/* Validation error state */
.practicpro-field.has-error input,
.practicpro-field.has-error textarea,
.practicpro-field.has-error select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.practicpro-field-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

/* Radio & Checkbox Groups */
.practicpro-radio-group,
.practicpro-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
}

.practicpro-radio-label,
.practicpro-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400 !important;
    color: #444;
    cursor: pointer;
}

.practicpro-radio-label input,
.practicpro-checkbox-label input {
    width: auto !important;
    margin: 0;
}

/* Submit Button */
.practicpro-form-footer {
    margin-top: 20px;
}

.practicpro-submit-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #27ae60;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: inherit;
    line-height: 1.4;
}

.practicpro-submit-btn:hover {
    filter: brightness(1.1);
}

.practicpro-submit-btn:active {
    transform: scale(0.98);
}

.practicpro-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Messages */
.practicpro-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.practicpro-form-message.success {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #b7e1cd;
}

.practicpro-form-message.error {
    background: #fce4e4;
    color: #c33;
    border: 1px solid #f5c6c6;
}

/* Hidden field */
.practicpro-field-hidden {
    display: none;
}
