.app-form-page {
    background: #f8fafc;
    padding: 32px 18px;
    border-radius: 18px;
}

.app-form-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.app-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.app-form-title {
    margin: 0;
    color: #1e293b;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.app-form-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.95rem;
}

.app-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.app-form-body {
    padding: 28px;
}

.app-form-section + .app-form-section {
    margin-top: 28px;
}

.app-form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-form-section-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.app-form-page .form-label,
.quotation-modal .form-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.app-form-page .required .form-label::after,
.quotation-modal .required .form-label::after {
    content: " *";
    color: #ef4444;
    font-weight: 800;
}

.app-form-page .form-control,
.app-form-page .form-select,
.quotation-modal .form-control,
.quotation-modal .form-select {
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.app-form-page .form-control,
.app-form-page .form-select,
.quotation-modal .form-control,
.quotation-modal .form-select {
    padding: 10px 14px;
}

.app-form-page textarea.form-control,
.quotation-modal textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.app-form-page .form-control:focus,
.app-form-page .form-select:focus,
.quotation-modal .form-control:focus,
.quotation-modal .form-select:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

.app-form-page .form-control[readonly],
.app-form-page .form-control[disabled] {
    background: #eef3f8;
    color: #64748b;
    opacity: 1;
}

.app-form-page .input-group.date,
.app-form-page .input-group {
    display: flex;
    align-items: stretch;
}

.app-form-page .input-group.date .form-control,
.app-form-page .input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.app-form-page .input-group-addon,
.app-form-page .input-group-text {
    border: 1px solid #cbd5e1;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #eef4ff;
    color: #2563eb;
    min-width: 46px;
    justify-content: center;
}

.app-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf2f7;
}

.app-form-note {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
}

.app-form-page .btn-theme-primary,
.quotation-modal .btn-theme-primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 10px;
    box-shadow: 0 10px 16px -12px rgba(15, 23, 42, 0.7);
}

.app-form-page .btn-theme-primary:hover,
.quotation-modal .btn-theme-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
}

.app-form-page .btn-theme-secondary,
.quotation-modal .btn-theme-secondary {
    border-radius: 10px;
    padding: 11px 20px;
    font-weight: 700;
}

.quotation-modal .modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.28);
}

.quotation-modal .modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

.quotation-modal .modal-body {
    padding: 24px;
}

@media (max-width: 767px) {
    .app-form-page {
        padding: 18px 8px;
    }

    .app-form-body {
        padding: 20px 16px;
    }

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