:root {
    --navy: #002d62;
    --blue: #0077c8;
    --blue-hover: #0064aa;
    --text: #002d62;
    --muted: #4d6580;
    --label: #002d62;
    --border: #c9d6e5;
    --focus: #0077c8;
    --page: #eef3f8;
    --red: #c62828;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: 100%;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--page);
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e6ebf0;
    padding: 10px 24px;
    box-shadow: 0 1px 0 rgba(0, 45, 98, 0.04);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.header-side-left {
    min-width: 0;
}

.header-side-right {
    justify-self: end;
}

.brand {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    display: block;
    height: 68px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    background: transparent;
}

.btn-data-center {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 10px 18px;
    border-radius: 6px;
    white-space: nowrap;
}

.btn-data-center:hover {
    background: var(--blue-hover);
    color: #fff;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 18px 40px;
}

.site-main.wide {
    max-width: 1100px;
}

.site-main.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    text-align: center;
    color: #7c98b6;
    font-size: 13px;
    padding: 22px 16px;
    background: #fff;
    border-top: 1px solid #e6ebf0;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
}

.footer-brand {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.footer-contact a {
    color: #516f90;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--blue);
}

.footer-dot {
    margin: 0 8px;
    color: #c5d3e0;
}

.footer-copy {
    margin-top: 8px;
    color: #8aa0b5;
    font-size: 12px;
}

.form-shell {
    background: var(--card);
    padding: 28px 32px 32px;
    border: 1px solid #e6ebf0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(27, 42, 65, 0.08);
    position: relative;
    overflow: hidden;
}

.form-shell:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--blue);
}

.form-title {
    margin: 8px 0 8px;
    font-size: 30px;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.form-intro {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

.enquiry-form .field {
    margin-bottom: 18px;
}

.enquiry-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--label);
}

.req {
    color: var(--red);
}

.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form input[type="password"],
.enquiry-form input[type="file"],
.enquiry-form select,
.enquiry-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1f3348;
    background: #f8fafc;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.enquiry-form textarea {
    min-height: 120px;
    resize: vertical;
}

.enquiry-form input:hover,
.enquiry-form select:hover,
.enquiry-form textarea:hover {
    border-color: #b9c7d6;
    background: #fff;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.16);
}

.form-grid.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(170px, 230px) 1fr;
    gap: 10px;
}

.btn-submit {
    display: inline-block;
    border: none;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 119, 200, 0.28);
}

.btn-submit:hover {
    background: var(--blue-hover);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
}

.btn-secondary,
.btn-lock {
    display: inline-block;
    border: 1px solid var(--border);
    background: #fff;
    color: #33475b;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-lock {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-lock:hover {
    background: #111;
}

.unlock-card {
    width: 100%;
    max-width: 520px;
}

.sheet-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sheet-actions,
.upload-form,
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.timer-line strong {
    color: var(--blue);
}

.status-note {
    background: #eaf7ee;
    color: #24663a;
    padding: 10px 12px;
    border-radius: 8px;
}

.upload-box {
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 12px;
    padding: 18px;
    margin: 16px 0 24px;
    box-shadow: 0 8px 20px rgba(27, 42, 65, 0.05);
}

.upload-box h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.sheet-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 12px;
}

.sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sheet-table th,
.sheet-table td {
    border-bottom: 1px solid #eef2f6;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

.sheet-table th {
    background: #f7fafc;
    color: var(--navy);
}

.field-error,
.form-summary {
    color: var(--red);
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

.form-summary {
    margin-bottom: 16px;
}

.back-link {
    margin-top: 16px;
}

.thank-you a,
.back-link a,
.form-card a {
    color: var(--blue);
}

.form-card {
    background: #fff;
    padding: 24px;
}

@media (max-width: 640px) {
    .site-header {
        padding: 8px 12px;
    }

    .brand-logo {
        height: 56px;
        max-width: 180px;
    }

    .btn-data-center {
        font-size: 12px;
        padding: 8px 12px;
    }

    .form-shell {
        padding: 22px 18px 24px;
    }

    .form-grid.two-col,
    .phone-row {
        grid-template-columns: 1fr;
    }
}
