/*
|--------------------------------------------------------------------------
| CSS Reset / Base
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #222222;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img,
picture,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| CSS Variables
|--------------------------------------------------------------------------
*/

:root {
    /*
    |----------------------------------------------------------------------
    | Layout
    |----------------------------------------------------------------------
    */

    --mp-container-width: 1200px;
    --mp-container-padding: 24px;

    /*
    |----------------------------------------------------------------------
    | Spacing
    |----------------------------------------------------------------------
    */

    --mp-space-xs: 8px;
    --mp-space-sm: 12px;
    --mp-space-md: 20px;
    --mp-space-lg: 32px;
    --mp-space-xl: 48px;
    --mp-space-2xl: 72px;

    /*
    |----------------------------------------------------------------------
    | Typography
    |----------------------------------------------------------------------
    */

    --mp-font-body:
        Arial,
        Helvetica,
        sans-serif;

    --mp-font-heading:
        Arial,
        Helvetica,
        sans-serif;

    /*
    |----------------------------------------------------------------------
    | Neutral Colours
    |----------------------------------------------------------------------
    */

    --mp-color-text: #222222;
    --mp-color-muted: #666666;
    --mp-color-border: #dddddd;
    --mp-color-background: #ffffff;
    --mp-color-surface: #f7f7f7;

    /*
    |----------------------------------------------------------------------
    | Status Colours
    |----------------------------------------------------------------------
    */

    --mp-color-success: #198754;
    --mp-color-warning: #b58105;
    --mp-color-error: #c62828;

    /*
    |----------------------------------------------------------------------
    | UI
    |----------------------------------------------------------------------
    */

    --mp-radius-sm: 6px;
    --mp-radius-md: 10px;
    --mp-radius-lg: 16px;

    --mp-shadow-sm:
        0 2px 8px rgba(0, 0, 0, 0.08);
}


/*
|--------------------------------------------------------------------------
| Typography
|--------------------------------------------------------------------------
*/

body {
    font-family: var(--mp-font-body);
    color: var(--mp-color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: var(--mp-space-md);
    font-family: var(--mp-font-heading);
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: var(--mp-space-md);
}


/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.mp-container {
    width: 100%;
    max-width:
        calc(
            var(--mp-container-width)
            + (var(--mp-container-padding) * 2)
        );
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--mp-container-padding);
    padding-left: var(--mp-container-padding);
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    border-bottom: 1px solid var(--mp-color-border);
    background: var(--mp-color-background);
}

.site-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--mp-space-lg);
}

.site-branding {
    flex-shrink: 0;
}

.custom-logo {
    width: auto;
    max-height: 90px;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Navigation
|--------------------------------------------------------------------------
*/

.site-menu {
    display: flex;
    align-items: center;
    gap: var(--mp-space-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu a {
    display: block;
    padding: 8px 0;
}


/*
|--------------------------------------------------------------------------
| Main Content
|--------------------------------------------------------------------------
*/

.site-main {
    padding-top: var(--mp-space-xl);
    padding-bottom: var(--mp-space-xl);
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    border-top: 1px solid var(--mp-color-border);
    background: var(--mp-color-surface);
}

.site-footer-inner {
    padding-top: var(--mp-space-lg);
    padding-bottom: var(--mp-space-lg);
}

.site-copyright {
    margin: 0;
    color: var(--mp-color-muted);
    font-size: 0.875rem;
}


/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mp-color-border);
    border-radius: var(--mp-radius-sm);
    background: #ffffff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: var(--mp-space-xs);
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.mp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 20px;

    border: 0;
    border-radius: var(--mp-radius-sm);

    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| Utility Classes
|--------------------------------------------------------------------------
*/

.mp-text-center {
    text-align: center;
}

.mp-text-muted {
    color: var(--mp-color-muted);
}

.mp-hidden {
    display: none !important;
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    :root {
        --mp-container-padding: 18px;
        --mp-space-xl: 36px;
        --mp-space-2xl: 48px;
    }

    .site-header-inner {
        min-height: 64px;
    }

    .site-menu {
        gap: var(--mp-space-md);
    }

}


/*
|--------------------------------------------------------------------------
| Test Order Form
|--------------------------------------------------------------------------
*/

.mp-test-order {
    max-width: 900px;
    margin: 0 auto;
}

.mp-test-order-header {
    margin-bottom: var(--mp-space-xl);
}

.mp-form-section {
    margin-bottom: var(--mp-space-xl);
    padding: var(--mp-space-lg);
    border: 1px solid var(--mp-color-border);
    border-radius: var(--mp-radius-md);
    background: var(--mp-color-background);
}

.mp-form-section > h2 {
    margin-bottom: var(--mp-space-lg);
}

.mp-form-section p:last-child {
    margin-bottom: 0;
}


/*
|--------------------------------------------------------------------------
| Design Grid
|--------------------------------------------------------------------------
*/

.mp-design-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: var(--mp-space-md);
}

.mp-design-card {
    display: block;
    padding: var(--mp-space-md);

    border: 2px solid var(--mp-color-border);
    border-radius: var(--mp-radius-md);

    cursor: pointer;
}

.mp-design-card:has(input:checked) {
    border-color: #222222;
}

.mp-design-card input {
    width: auto;
    margin-bottom: var(--mp-space-sm);
}

.mp-design-card img {
    width: 100%;
    margin-bottom: var(--mp-space-md);
}

.mp-design-card strong,
.mp-design-card small {
    display: block;
}


/*
|--------------------------------------------------------------------------
| Price
|--------------------------------------------------------------------------
*/

.mp-order-price {
    margin-top: var(--mp-space-lg);
    padding: var(--mp-space-md);

    border-radius: var(--mp-radius-sm);
    background: var(--mp-color-surface);

    font-size: 1.25rem;
}


/*
|--------------------------------------------------------------------------
| Checkbox
|--------------------------------------------------------------------------
*/

.mp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--mp-space-sm);

    font-weight: 400;
}

.mp-checkbox-label input {
    width: auto;
    margin-top: 6px;
}


/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/

.mp-alert {
    margin-bottom: var(--mp-space-lg);
    padding: var(--mp-space-md);
    border-radius: var(--mp-radius-sm);
}

.mp-alert-error {
    border: 1px solid var(--mp-color-error);
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {

    .mp-design-grid {
        grid-template-columns: 1fr;
    }

    .mp-form-section {
        padding: var(--mp-space-md);
    }

}