/* Shared Form Styles (used by register.html, yourdata.html) */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: " *";
    color: #f44336;
    font-weight: bold;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--surface-muted);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 43, 214, 0.12);
    background: white;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--surface-muted);
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 43, 214, 0.12);
    background: white;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

body[dir="rtl"] .char-count {
    text-align: left;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

/* Phone Input Group */
.phone-input-group {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}

.country-select {
    padding: 12px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--surface-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 43, 214, 0.12);
    background: white;
}

/* Form Responsive */
@media (max-width: 768px) {
    .phone-input-group {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}
