Edit staticfiles/css/custom.css via Editor

This commit is contained in:
Flatlogic Bot 2025-12-27 02:06:16 +00:00
parent 11a04e252d
commit 985fc56e9b

View File

@ -1,49 +1,84 @@
/* =============================== /* =====================================================
Kingdom Trade Group Inquiry Form Kingdom Trade Group Inquiry Form
Figma-aligned UI Flatlogic Design System + Figma Alignment
=============================== */ ===================================================== */
/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* ---------- Design Tokens ---------- */ /* =====================================================
Global Design Tokens (Flatlogic Overrides + KTG Tokens)
===================================================== */
:root { :root {
/* ---------- Flatlogic Core Overrides ---------- */
--background: #f8fafc;
--card: #ffffff;
--card-foreground: #020617;
--primary: #0f172a;
--primary-foreground: #ffffff;
--secondary: #eef2f7;
--secondary-foreground: #020617;
--accent: #2563eb;
--accent-foreground: #ffffff;
--muted: #eef2f7;
--muted-foreground: #64748b;
--destructive: #dc2626;
--destructive-foreground: #ffffff;
--border: #e2e8f0;
--input-background: #ffffff;
--input: #ffffff;
--ring: rgba(37, 99, 235, 0.35);
--radius: 0.75rem;
--font-weight-normal: 400;
--font-weight-medium: 500;
/* ---------- Kingdom Trade Group Tokens ---------- */
--ktg-navy: #0f172a; --ktg-navy: #0f172a;
--ktg-blue: #2563eb; --ktg-blue: #2563eb;
--ktg-blue-soft: #dbeafe; --ktg-blue-soft: #dbeafe;
--bg-page: #f8fafc;
--bg-card: #ffffff;
--text-primary: #020617; --text-primary: #020617;
--text-secondary: #475569; --text-secondary: #475569;
--text-muted: #64748b; --text-muted: #64748b;
--border-color: #e2e8f0;
--radius-card: 12px; --radius-card: 12px;
--radius-input: 8px; --radius-input: 8px;
} }
/* ---------- Base ---------- */ /* =====================================================
Base
===================================================== */
body { body {
font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background-color: var(--bg-page); background-color: var(--background);
color: var(--text-primary); color: var(--text-primary);
margin: 0; margin: 0;
padding: 2rem; padding: 2rem;
} }
/* ---------- Card Container ---------- */ /* =====================================================
Form Container (Card)
===================================================== */
.form-container { .form-container {
max-width: 760px; max-width: 760px;
margin: 0 auto; margin: 0 auto;
background-color: var(--bg-card); background-color: var(--card);
border-radius: var(--radius-card); border-radius: var(--radius-card);
box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08); box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
overflow: hidden; overflow: hidden;
} }
/* ---------- Header ---------- */ /* =====================================================
Header
===================================================== */
.form-header { .form-header {
background: linear-gradient(135deg, #020617, #0f172a); background: linear-gradient(135deg, #020617, #0f172a);
padding: 1.75rem 2rem; padding: 1.75rem 2rem;
@ -62,12 +97,16 @@ body {
margin-top: 0.25rem; margin-top: 0.25rem;
} }
/* ---------- Body Padding ---------- */ /* =====================================================
Body
===================================================== */
.form-body { .form-body {
padding: 2.5rem; padding: 2.5rem;
} }
/* ---------- Sections ---------- */ /* =====================================================
Sections
===================================================== */
.form-section { .form-section {
margin-bottom: 3rem; margin-bottom: 3rem;
} }
@ -81,7 +120,7 @@ body {
color: var(--text-primary); color: var(--text-primary);
} }
/* Step number */ /* Step Indicator */
.section-title::before { .section-title::before {
content: attr(data-step); content: attr(data-step);
display: inline-flex; display: inline-flex;
@ -97,7 +136,9 @@ body {
font-weight: 600; font-weight: 600;
} }
/* ---------- Grid ---------- */ /* =====================================================
Grid Layout
===================================================== */
.form-row { .form-row {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr);
@ -113,7 +154,9 @@ body {
grid-column: 1 / -1; grid-column: 1 / -1;
} }
/* ---------- Labels ---------- */ /* =====================================================
Labels
===================================================== */
.form-group label { .form-group label {
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 500; font-weight: 500;
@ -121,7 +164,9 @@ body {
color: var(--text-secondary); color: var(--text-secondary);
} }
/* ---------- Inputs ---------- */ /* =====================================================
Inputs & Selects
===================================================== */
.form-control, .form-control,
.form-select, .form-select,
input, input,
@ -130,8 +175,8 @@ textarea {
height: 44px; height: 44px;
padding: 0.6rem 0.75rem; padding: 0.6rem 0.75rem;
border-radius: var(--radius-input); border-radius: var(--radius-input);
border: 1px solid var(--border-color); border: 1px solid var(--border);
background-color: #ffffff; background-color: var(--input-background);
font-size: 0.9rem; font-size: 0.9rem;
color: var(--text-primary); color: var(--text-primary);
} }
@ -157,7 +202,24 @@ textarea:focus {
color: #94a3b8; color: #94a3b8;
} }
/* ---------- Button ---------- */ /* =====================================================
Checkbox
===================================================== */
.checkbox-group {
display: flex;
align-items: center;
gap: 0.75rem;
}
.checkbox-group input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: var(--ktg-blue);
}
/* =====================================================
Submit Button
===================================================== */
.submit-button { .submit-button {
width: 100%; width: 100%;
height: 48px; height: 48px;
@ -175,12 +237,16 @@ textarea:focus {
background-color: #1d4ed8; background-color: #1d4ed8;
} }
/* ---------- Hidden ---------- */ /* =====================================================
Utility
===================================================== */
.hidden-row { .hidden-row {
display: none; display: none;
} }
/* ---------- Mobile ---------- */ /* =====================================================
Responsive
===================================================== */
@media (max-width: 768px) { @media (max-width: 768px) {
body { body {
padding: 1rem; padding: 1rem;
@ -193,4 +259,4 @@ textarea:focus {
.form-row { .form-row {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
} }