@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');


/* =========================================================
   AMARK LOGISTICS — FILE A CLAIM FORM
========================================================= */

.amark-claim {
    --blue: #0878d1;
    --blue-dark: #062b67;
    --teal: #078b9a;
    --text: #254b73;
    --muted: #71879a;
    --border: #d6e5ed;
    --light: #f5fafc;
    --danger: #df4141;

    width: min(1400px, calc(100vw - 40px)) !important;
    max-width: none !important;
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: var(--text);
}

.amark-claim *,
.amark-claim *::before,
.amark-claim *::after {
    box-sizing: border-box;
}

.amark-claim-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
}

.amark-claim-form-card {
    background: #fff;
    border: 1px solid #dceaf1;
    border-radius: 12px;
    padding: 26px;
}

.amark-claim-status {
    display: none;
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.amark-claim-status.success {
    display: block;
    background: #edf9f1;
    color: #287344;
    border: 1px solid #b8e2c4;
}

.amark-claim-status.error {
    display: block;
    background: #fff1f1;
    color: #a33a3a;
    border: 1px solid #efc0c0;
}

.amark-claim-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3edf2;
}

.amark-claim-section:last-of-type {
    margin-bottom: 20px;
    border-bottom: 0;
    padding-bottom: 0;
}

.amark-claim-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.amark-claim-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.amark-claim-section-heading h3 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.amark-claim-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amark-claim-field {
    min-width: 0;
}

.amark-claim-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
}

.amark-claim-required {
    color: var(--danger);
}

.amark-claim-field input,
.amark-claim-field select,
.amark-claim-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    color: #233f61;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
    transition: border-color .2s, box-shadow .2s;
}

.amark-claim-field input,
.amark-claim-field select {
    height: 39px;
    padding: 0 10px;
}

.amark-claim-field textarea {
    min-height: 105px;
    padding: 10px;
    resize: vertical;
}

.amark-claim-field input::placeholder,
.amark-claim-field textarea::placeholder {
    color: #9eb2c2;
}

.amark-claim-field input:focus,
.amark-claim-field select:focus,
.amark-claim-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(8,120,209,.08);
}

.amark-claim-shipment-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.amark-claim-shipment-row.three {
    grid-template-columns: 1.3fr .9fr .9fr;
}

.amark-claim-shipment-row:last-child {
    margin-bottom: 0;
}

.amark-claim-type-title {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.amark-claim-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.amark-claim-type {
    display: flex !important;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    color: #233f61 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.amark-claim-type input {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--teal);
}

.amark-claim-type:hover {
    border-color: var(--blue);
    background: #f8fcff;
}

.amark-claim-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.amark-claim-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    table-layout: fixed;
}

.amark-claim-table th {
    background: #eaf4fa;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    padding: 8px 6px;
    text-align: left;
    border-right: 1px solid #dceaf1;
}

.amark-claim-table th:last-child {
    border-right: 0;
}

.amark-claim-table td {
    padding: 5px;
    border-top: 1px solid #e3edf2;
    border-right: 1px solid #e3edf2;
    background: #fff;
    vertical-align: middle;
}

.amark-claim-table td:last-child {
    border-right: 0;
}

.amark-claim-table input {
    width: 100%;
    height: 34px;
    border: 1px solid #d6e5ed;
    border-radius: 4px;
    padding: 0 7px;
    font-family: inherit;
    font-size: 11px;
    color: #233f61;
    outline: none;
}

.amark-claim-table input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(8,120,209,.07);
}

.amark-claim-amount {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--blue-dark);
    white-space: nowrap;
}

.amark-claim-remove {
    width: 28px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #0878d1;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    padding: 0;
}

.amark-claim-remove:hover {
    color: #df4141;
}

.amark-claim-table th:nth-child(1),
.amark-claim-table td:nth-child(1) { width: 11%; }

.amark-claim-table th:nth-child(2),
.amark-claim-table td:nth-child(2) { width: 32%; }

.amark-claim-table th:nth-child(3),
.amark-claim-table td:nth-child(3) { width: 18%; }

.amark-claim-table th:nth-child(4),
.amark-claim-table td:nth-child(4) { width: 18%; }

.amark-claim-table th:nth-child(5),
.amark-claim-table td:nth-child(5) { width: 16%; }

.amark-claim-table th:nth-child(6),
.amark-claim-table td:nth-child(6) { width: 5%; }

.amark-add-line {
    margin-top: 8px;
    border: 1px solid var(--blue);
    background: #fff;
    color: var(--blue);
    border-radius: 5px;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.amark-add-line:hover {
    background: #f1f9ff;
}

.amark-claim-nmfc {
    max-width: 350px;
    margin-top: 12px;
}

.amark-claim-total-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.amark-claim-total-label {
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 800;
}

.amark-claim-total {
    min-width: 88px;
    padding: 6px 12px;
    background: #eef3f7;
    border-radius: 4px;
    color: var(--blue-dark);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.amark-document-note {
    margin: 0 0 8px;
    color: #678098;
    font-size: 10px;
    line-height: 1.5;
}

.amark-document-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 12px;
}

.amark-document-check {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #526e86 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.amark-document-check input {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--teal);
}

.amark-claim-upload {
    border: 1px dashed #b8d5e2;
    border-radius: 6px;
    background: #f7fbfd;
    padding: 18px 15px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
}

.amark-claim-upload:hover,
.amark-claim-upload.dragover {
    border-color: var(--blue);
    background: #f2faff;
}

.amark-claim-upload-icon {
    color: var(--blue);
    font-size: 25px;
    line-height: 1;
    margin-bottom: 6px;
}

.amark-claim-upload strong {
    display: block;
    color: var(--blue);
    font-size: 11px;
}

.amark-claim-upload small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.amark-claim-file-input {
    display: none !important;
}

.amark-claim-file-list {
    margin-top: 8px;
    text-align: left;
    color: #526f87;
    font-size: 10px;
}

.amark-claim-file-item {
    padding: 3px 0;
}

.amark-claim-submit {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 5px;
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.amark-claim-submit:hover {
    background: #0565b3;
}

.amark-claim-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.amark-claim-legal {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}

.amark-claim-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amark-claim-side-card {
    background: linear-gradient(180deg, #effaff 0%, #ffffff 100%);
    border: 1px solid #d7ebf3;
    border-radius: 8px;
    padding: 20px;
}

.amark-claim-side-card h3 {
    margin: 0 0 9px;
    color: var(--blue-dark);
    font-size: 19px;
    line-height: 1.15;
    font-weight: 800;
}

.amark-claim-side-card p {
    margin: 0 0 15px;
    color: #678098;
    font-size: 10px;
    line-height: 1.55;
}

.amark-claim-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.amark-claim-contact-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.amark-claim-contact small {
    display: block;
    color: #ffffff;
    font-size: 8px;
    margin-bottom: 2px;
}

.amark-claim-contact strong {
    display: block;
    color: var(--blue-dark);
    font-size: 10px;
    word-break: break-word;
}

.amark-claim-divider {
    height: 1px;
    background: #294651;
    margin: 16px 0;
}

.amark-claim-guide {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #315563;
    border-radius: 6px;
    background: #111b21;
}

.amark-claim-guide h4 {
    margin: 0 0 5px;
    color: #f2fbfd;
    font-size: 12px;
    font-weight: 800;
}

.amark-claim-guide p {
    margin: 0 0 8px;
    color: #9bb0bd;
    font-size: 9px;
    line-height: 1.45;
}

.amark-claim-guide a {
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.amark-claim-guide a:hover {
    text-decoration: underline;
}

.amark-claim-benefits {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.amark-claim-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 10px 0;
    color: #55728c;
    font-size: 9px;
    line-height: 1.4;
}

.amark-claim-benefits li span {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
}


/* =========================================================
   MOBILE RESPONSIVE OVERRIDES
========================================================= */
@media (max-width: 767px) {
    .amark-claim { width:100% !important; max-width:100% !important; margin:0; padding:0; left:auto; transform:none; overflow-x:hidden; }
    .amark-claim-layout { display:block; width:100%; }
    .amark-claim-form-card { width:100%; max-width:100%; padding:16px 12px; border-radius:8px; }
    .amark-claim-section { margin-bottom:22px; padding-bottom:16px; }
    .amark-claim-section-heading { gap:8px; margin-bottom:12px; }
    .amark-claim-number { width:28px; height:28px; min-width:28px; font-size:12px; }
    .amark-claim-section-heading h3 { font-size:16px; }
    .amark-claim-contact-grid,
    .amark-claim-shipment-row,
    .amark-claim-shipment-row.three { grid-template-columns:1fr; gap:10px; margin-bottom:10px; }
    .amark-claim-field input,
    .amark-claim-field select { height:42px; font-size:14px; }
    .amark-claim-field textarea { min-height:130px; font-size:14px; }
    .amark-claim-type-grid { grid-template-columns:1fr; gap:8px; }
    .amark-claim-type { min-height:46px; font-size:13px !important; }

    /* Turn the loss table into stacked cards on phones. */
    .amark-claim-table-wrap { overflow:visible; border:0; border-radius:0; }
    .amark-claim-table { width:100%; min-width:0; display:block; table-layout:auto; }
    .amark-claim-table thead { display:none; }
    .amark-claim-table tbody { display:block; width:100%; }
    .amark-claim-table tr.amark-claim-line {
        display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%;
        margin-bottom:12px; padding:12px; border:1px solid var(--border);
        border-radius:8px; background:#fff;
    }
    .amark-claim-table td { display:block; width:auto !important; padding:0; border:0; background:transparent; }
    .amark-claim-table td:nth-child(2) { grid-column:1 / -1; }
    .amark-claim-table td:nth-child(5) {
        display:flex; align-items:center; min-height:42px; padding:0 8px;
        border:1px solid #d6e5ed; border-radius:5px; background:#f7fafc;
    }
    .amark-claim-table td:nth-child(6) { display:flex; align-items:center; justify-content:flex-end; min-height:42px; }
    .amark-claim-table td::before {
        display:block; margin-bottom:4px; color:var(--text); font-size:10px; font-weight:800;
    }
    .amark-claim-table td:nth-child(1)::before { content:"Quantity"; }
    .amark-claim-table td:nth-child(2)::before { content:"Description"; }
    .amark-claim-table td:nth-child(3)::before { content:"Per Pound ($)"; }
    .amark-claim-table td:nth-child(4)::before { content:"Weight (lbs)"; }
    .amark-claim-table td:nth-child(5)::before { content:"Amount"; margin:0 8px 0 0; }
    .amark-claim-table td:nth-child(6)::before { content:""; margin:0; }
    .amark-claim-table input { width:100%; height:42px; font-size:14px; }
    .amark-claim-amount { font-size:14px; text-align:left; }
    .amark-claim-remove {
        width:42px; height:42px; font-size:17px; border:1px solid #d6e5ed;
        border-radius:5px; background:#fff;
    }
    .amark-add-line { width:100%; min-height:42px; padding:9px 12px; font-size:12px; }
    .amark-claim-nmfc { max-width:100%; }
    .amark-claim-total-row { justify-content:space-between; gap:10px; width:100%; }
    .amark-claim-total { min-width:100px; }
    .amark-document-grid { display:grid; grid-template-columns:1fr; gap:8px; }
    .amark-document-check { min-height:34px; font-size:12px !important; }
    .amark-claim-upload { padding:20px 12px; }
    .amark-claim-submit { min-height:50px; font-size:14px; }
    .amark-claim-sidebar { width:100%; margin-top:16px; gap:12px; }
    .amark-claim-side-card { width:100%; padding:16px; border-radius:8px; }
    .amark-claim-side-card h3 { font-size:18px; }
    .amark-claim-side-card p { font-size:12px; line-height:1.55; }
    .amark-claim-benefits li { font-size:11px; }
}

@media (max-width:380px) {
    .amark-claim-form-card { padding:14px 10px; }
    .amark-claim-table tr.amark-claim-line { grid-template-columns:1fr; }
    .amark-claim-table td:nth-child(2) { grid-column:auto; }
    .amark-claim-total-row { align-items:flex-start; flex-direction:column; }
    .amark-claim-total { width:100%; }
}

@media (max-width: 1000px) {
    .amark-claim-layout {
        grid-template-columns: 1fr;
    }

    .amark-claim-sidebar {
        order: 2;
    }

    .amark-claim-form-card {
        order: 1;
    }
}

@media (max-width: 750px) {
    .amark-claim-form-card {
        padding: 18px 15px;
    }

    .amark-claim-contact-grid {
        grid-template-columns: 1fr;
    }

    .amark-claim-shipment-row {
        grid-template-columns: 1fr 1fr;
    }

    .amark-claim-shipment-row.three {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .amark-claim-shipment-row,
    .amark-claim-shipment-row.three {
        grid-template-columns: 1fr;
    }

    .amark-claim-type-grid {
        grid-template-columns: 1fr;
    }

    .amark-claim-total-row {
        justify-content: flex-start;
    }

    .amark-claim-section-heading h3 {
        font-size: 16px;
    }
}


/* =========================================================
   AMARK LOGISTICS — DARK WEBSITE THEME OVERRIDES
   Only visual/theme changes. Form structure and behavior unchanged.
========================================================= */

.amark-claim {
    --blue: #0878d1;
    --blue-dark: #f2fbfd;
    --teal: #078b9a;
    --text: #e6f2f5;
    --muted: #9bb0bd;
    --border: #24424c;
    --light: #10191f;
}

.amark-claim-form-card {
    background: #0b1116;
    border-color: #1d4652;
}

.amark-claim-section {
    border-bottom-color: #1d3943;
}

.amark-claim-field input,
.amark-claim-field select,
.amark-claim-field textarea {
    background: #111b21;
    color: #edf8fa;
    border-color: #294651;
}

.amark-claim-type {
    color: #edf8fa !important;
    background: #111b21;
    border-color: #294651;
}

.amark-claim-type:hover {
    background: #17262d;
}

.amark-claim-table-wrap {
    border-color: #294651;
}

.amark-claim-table th {
    background: #16272e;
    color: #e6f2f5;
    border-right-color: #294651;
}

.amark-claim-table td {
    background: #0f181d;
    border-top-color: #203b44;
    border-right-color: #203b44;
}

.amark-claim-table input {
    background: #111b21;
    color: #edf8fa;
    border-color: #294651;
}

.amark-add-line {
    background: #0f181d;
}

.amark-add-line:hover {
    background: #17262d;
}

.amark-claim-total {
    background: #16272e;
    color: #f2fbfd;
}

.amark-document-note {
    color: #9bb0bd;
}

.amark-document-check {
    color: #b8cbd3 !important;
}

.amark-claim-upload {
    background: #101a20;
    border-color: #315563;
}

.amark-claim-upload:hover,
.amark-claim-upload.dragover {
    background: #14252c;
}

.amark-claim-file-list {
    color: #b8cbd3;
}

/* Sidebar follows the same dark theme */
.amark-claim-side-card {
    background: linear-gradient(180deg, #102128 0%, #0b1217 100%);
    border-color: #1d5360;
}

.amark-claim-side-card h3 {
    color: #f2fbfd;
}

.amark-claim-side-card p {
    color: #a9bdc7;
}

.amark-claim-benefits li {
    color: #b8cbd3;
}
