.form-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background-color: rgba(248, 249, 250, 0.7);
}

.form-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-card-body {
    padding: 1.25rem;
}

.form-section + .form-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.form-section-title {
    margin: 0 0 1rem 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #495057;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem 1rem;
}

.form-col-12 { grid-column: span 12; }
.form-col-9  { grid-column: span 9; }
.form-col-8  { grid-column: span 8; }
.form-col-6  { grid-column: span 6; }
.form-col-4  { grid-column: span 4; }
.form-col-3  { grid-column: span 3; }

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.45rem;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.form-control,
.form-select,
textarea.form-control {
    min-height: 46px;
    border-radius: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
    box-shadow: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

textarea.form-control {
    min-height: 120px;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.10);
}

.form-check {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding-left: 0;
}

.form-check-input {
    margin: 0;
    float: none;
    width: 1.1rem;
    height: 1.1rem;
}

.form-check-label {
    margin: 0;
    color: #495057;
    font-weight: 500;
}

.input-group-text {
    border-radius: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #f8f9fa;
    color: #6c757d;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-hsg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.btn-hsg:hover,
.btn-hsg:focus {
    transform: translateY(-1px);
}

.btn-hsg-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-hsg-primary:hover,
.btn-hsg-primary:focus {
    background-color: #0b5ed7;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.18);
}

.btn-hsg-secondary {
    background-color: #f8f9fa;
    color: #495057;
    border-color: rgba(0, 0, 0, 0.10);
}

.btn-hsg-secondary:hover,
.btn-hsg-secondary:focus {
    background-color: #eef1f4;
    color: #212529;
}

.btn-hsg-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.btn-hsg-danger:hover,
.btn-hsg-danger:focus {
    background-color: #bb2d3b;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.18);
}

.alert-hsg {
    border: none;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    font-weight: 500;
}

.alert-hsg-success {
    background-color: rgba(25, 135, 84, 0.10);
    color: #146c43;
}

.alert-hsg-warning {
    background-color: rgba(255, 193, 7, 0.14);
    color: #8a6300;
}

.alert-hsg-danger {
    background-color: rgba(220, 53, 69, 0.10);
    color: #b02a37;
}

@media (max-width: 991.98px) {
    .form-col-9,
    .form-col-8,
    .form-col-6,
    .form-col-4,
    .form-col-3 {
        grid-column: span 12;
    }
}

@media (max-width: 767.98px) {
    .form-card-body,
    .form-card-header {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hsg {
        width: 100%;
    }
}

