/* Form Card */
.form-card {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-primary);
}

.form-sub-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--color-secondary);
}

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group {
    position: relative;
    width: 100%;
}

/* Floating Inputs */
.form-control {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem;
    border: 1px solid var(--input-border);
    border-radius: var(--input-radius);
    background: var(--input-bg);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(11, 124, 97, 0.15);
}

.form-label {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    background: var(--input-bg);
    padding: 0 0.25rem;
    color: var(--color-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s ease all;
}

/* Floating effect */
.form-control:focus+.form-label,
.form-control:not(:placeholder-shown)+.form-label {
    top: -0.6rem;
    left: 0.6rem;
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* Select Box */
select.form-control {
    appearance: none;
    background: var(--input-bg) url("data:image/svg+xml;utf8,<svg fill='%236c757d' height='20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>") no-repeat right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--input-border);
    margin-right: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

/* Checkbox */
.form-check input[type="checkbox"] {
    border-radius: 4px;
}

.form-check input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    top: -2px;
    left: 3px;
    font-size: 12px;
    color: var(--color-white);
}

/* Radio */
.form-check input[type="radio"] {
    border-radius: 50%;
}

.form-check input[type="radio"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-check input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

/* Label */
.form-check-label {
    color: var(--color-dark);
    font-size: 0.95rem;
    cursor: pointer;
}

/* Image Upload */
.image-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.image-upload input {
    display: none;
}

.image-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--color-muted);
    cursor: pointer;
    overflow: hidden;
    background: var(--color-light);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
    margin: 0 0.5rem;
}

/* Gender / Radio Group Title */
.form-label-static {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Group radios inline */
.form-check-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-links {
    margin-top: 15px;
    text-align: center;
}

.forgot-password {
    font-size: 18px;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
