@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Public Sans', sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body) !important;
    font-size: 15px;
    background: #f5f7fb !important;
    color: #1f2937;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

body {
    min-height: 100vh;
}

/* PAGE HEADER */
.page-header {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.page-header h1,
.page-title {
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.page-subtitle {
    margin-top: 6px !important;
    color: #64748b !important;
    font-size: 14px !important;
}

/* CARDS */
.card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.card-header,
.card-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
}

.card-header h2,
.card-header h3,
.card-title h2,
.card-title h3 {
    margin: 0 !important;
    color: #111827 !important;
}

/* TABLES */
.table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    background: #ffffff !important;
    border-radius: 10px !important;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
}

th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 13px 14px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    white-space: nowrap;
}

td {
    padding: 13px 14px !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #374151 !important;
    font-size: 14px !important;
    vertical-align: middle !important;
}

tr:hover td {
    background: #f8fafc !important;
}

/* BUTTONS */
.btn,
button,
input[type="submit"] {
    border-radius: 7px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.btn {
    display: inline-block;
    padding: 9px 15px !important;
    border: none !important;
    text-decoration: none !important;
}

.btn-primary {
    background: #2563eb !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #1d4ed8 !important;
}

.btn-secondary {
    background: #64748b !important;
    color: #ffffff !important;
}

.btn-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.btn-success {
    background: #16a34a !important;
    color: #ffffff !important;
}

/* FORMS */
input,
select,
textarea {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    padding: 9px 11px !important;
    background: #ffffff !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .12) !important;
}

/* STATUS BADGES */
.badge,
.status {
    display: inline-block;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* ALERTS */
.alert {
    border-radius: 8px !important;
    padding: 12px 15px !important;
    margin-bottom: 20px !important;
}

/* RESPONSIVE */
@media (max-width: 650px) {
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
}

/* =========================================================
   CLIENT FORM - PROFESSIONAL LAYOUT
   ========================================================= */

h2 + form {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 20px 0 32px;
    box-shadow: 0 2px 8px rgba(16, 36, 92, 0.06);
}

/* Form rows */
h2 + form > div {
    margin-bottom: 18px;
}

/* Labels */
h2 + form label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

/* Text fields, select and textarea */
h2 + form input[type="text"],
h2 + form input[type="email"],
h2 + form input[type="tel"],
h2 + form input[type="number"],
h2 + form select,
h2 + form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

h2 + form textarea {
    min-height: 100px;
    resize: vertical;
}

h2 + form input:focus,
h2 + form select:focus,
h2 + form textarea:focus {
    border-color: #168fe5;
    box-shadow: 0 0 0 3px rgba(22, 143, 229, .12);
}

/* Put normal fields into two columns when possible */
@media (min-width: 800px) {
    h2 + form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
        row-gap: 0;
    }

    h2 + form > div {
        width: 100%;
    }

    /* Notes / full-width fields */
    h2 + form textarea,
    h2 + form textarea + *,
    h2 + form button,
    h2 + form input[type="submit"] {
        grid-column: 1 / -1;
    }
}

/* Buttons */
h2 + form button,
h2 + form input[type="submit"] {
    min-height: 42px;
    padding: 10px 20px;
    border: 0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

h2 + form button[type="submit"],
h2 + form input[type="submit"] {
    background: #168fe5;
    color: #fff;
}

h2 + form button[type="submit"]:hover,
h2 + form input[type="submit"]:hover {
    background: #0d7dcc;
}

/* Cancel button */
h2 + form a,
h2 + form button[type="button"] {
    display: inline-block;
    padding: 10px 20px;
    margin: 8px 0 0 8px;
    border-radius: 7px;
    text-decoration: none;
    background: #eef2f6;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

/* Required marker */
h2 + form label span,
h2 + form label .required {
    color: #d92d20;
}

/* Mobile */
@media (max-width: 799px) {
    h2 + form {
        padding: 22px;
        max-width: 100%;
    }
}

