@font-face {
    font-family: "Conthrax Bold"; /* Name it whatever you want */
    src: url("../fonts/conthrax-bold.otf") format("opentype"); /* Where the file is */
    font-weight: bold; /* Tell it this is a bold font */
    font-style: normal;
}

/* Step 2: Teach the browser about Conthrax SemiBold */
@font-face {
    font-family: "Conthrax SemiBold";
    src: url("../fonts/Conthrax-SemiBold.otf") format("opentype");
    font-weight: 600; /* Semi-bold weight */
    font-style: normal;
}

/* Step 3: Teach the browser about Gotham Book */
@font-face {
    font-family: "Gotham Book";
    src: url("../fonts/gotham-book.ttf") format("truetype"); /* Note: .ttf not .otf */
    font-weight: normal; /* Normal weight */
    font-style: normal;
}

:root {
    --primary-red: #ff3131;
    --dark-gray: #2d2c2e;
    --medium-gray: #737373;
    --light-gray: #d9d9d9;
    --border-color: #ced4da;
}

/* Dark background */
body {
    font-family:
        "Gotham Book",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    background-color: var(--dark-gray);
    color: var(--dark-gray);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Logo outside container - top left */
.logo-container {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
}

/* White/grey form container */
.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
}

/* Mobile header — hidden on desktop */
.mobile-header {
    display: none;
}

/* Main heading - Conthrax Bold, Red */
h1 {
    font-family: "Conthrax Bold", Arial, sans-serif;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Subheadings - Conthrax Light, Dark Gray */
h2,
h3 {
    font-family: "Conthrax SemiBold", Arial, sans-serif;
    color: var(--dark-gray);
    font-weight: 600;
}

/* Device info box - light grey background */
.device-info {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-red);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
    text-align: center;
}

.device-info strong {
    font-family: "Conthrax SemiBold", Arial, sans-serif;
    color: var(--dark-gray);
    display: block;
    margin-bottom: 5px;
}

.device-id {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-red);
    font-family: "Gotham Book", Arial, sans-serif;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.warning-box strong {
    font-family: "Conthrax SemiBold", Arial, sans-serif;
}


.form-group {
    margin-bottom: 20px;
}

/* Labels - Conthrax SemiBold */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: "Conthrax SemiBold", Arial, sans-serif;
    color: var(--dark-gray);
}

/* Inputs - Gotham Book */
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    font-family: "Gotham Book", Arial, sans-serif;
    color: var(--medium-gray);
}

input[readonly] {
    font-family: "Gotham Book", Arial, sans-serif;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: "Gotham Book", Arial, sans-serif;
    transition: border-color 0.3s;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(255, 49, 49, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/*Required field notice */
.required-notice {
    text-align: center;
    font-size: 13px;
    color: var(--medium-gray);
    margin-bottom: 25px; 
    font-style: italic; 
}

/* Privacy notice above submit */
.privacy-notice {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}
.privacy-link {
    color: #888;
    text-underline-offset: 2px;
}
.privacy-link:hover { color: var(--primary-red); }

/* Submit button - Red with dark gray hover */
.submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-red);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: "Gotham Book", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition:
        background-color 0.3s,
        transform 0.1s;
    text-decoration: none;
    text-align: center;
}

.submit-btn:hover {
    background-color: var(--dark-gray);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
}



/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        display: none;
    }

    .mobile-header {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #fff;
        border-bottom: 3px solid var(--primary-red);
        margin: -36px -32px 30px -32px;
        padding: 24px 20px;
        border-radius: 8px 8px 0 0;
    }

    .mobile-logo {
        max-width: 180px;
        height: auto;
    }

    .ty-wrap {
        justify-content: flex-start;
    }

    body {
        padding: 10px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 24px;
    }

    .manual-entry-input {
        flex-direction: column;
    }

    .manual-entry-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .logo {
        max-width: 120px;
    }

    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 20px;
    }
}

/* Contact Footer */
.contact-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
    font-family: "Gotham Book", Arial, sans-serif;
    color: var(--medium-gray);
    font-size: 13px;
}

.contact-footer h3 {
    font-family: "Conthrax SemiBold", Arial, sans-serif;
    color: var(--medium-gray);
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--dark-gray);
    text-decoration: underline;
}

/* Photo upload area — dashed border to distinguish from regular fields */
.photo-upload-area {
    border-radius: 8px;
    padding: 14px;
    background-color: var(--light-gray);
    border: 2px dashed var(--medium-gray);
}

/* ============================================
               CAMERA UI
               ============================================ */

.camera-btn {
    display: block;
    margin: 0 auto;
    width: auto;
    min-width: 200px;
    padding: 11px 28px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Gotham Book", Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.camera-btn:hover { background: var(--dark-gray); }

.camera-upload-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--medium-gray);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    width: 100%;
    font-family: "Gotham Book", Arial, sans-serif;
    font-weight: normal;
    padding: 0;
}

.camera-upload-link:hover { color: var(--primary-red); }

#camera-viewport {
    position: relative;
    width: 100%;
    max-height: 300px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#camera-video {
    width: 100%;
    display: block;
    max-height: 340px;
    object-fit: cover;
}

.camera-cancel-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    line-height: 32px;
    text-align: center;
}

.camera-controls {
    display: flex;
    justify-content: center;
    padding: 14px 0 4px;
}

.shutter-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--primary-red);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.1s;
}

.shutter-btn:active { transform: scale(0.9); }

#captured-preview {
    width: 100%;
    border-radius: 8px;
    display: block;
    max-height: 340px;
    object-fit: cover;
}

.camera-retake-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.camera-retake-row button {
    flex: 1;
    padding: 11px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: "Gotham Book", Arial, sans-serif;
    cursor: pointer;
}

.btn-retake, .btn-use { background: var(--primary-red); color: #fff; }
.btn-retake:hover, .btn-use:hover { background: var(--dark-gray); }

.photo-confirmed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--light-gray);
    border-radius: 8px;
}

.photo-confirmed img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.photo-confirmed-text {
    flex: 1;
    font-size: 14px;
    color: var(--dark-gray);
    font-family: "Gotham Book", Arial, sans-serif;
}

.photo-change-btn {
    font-size: 12px;
    color: var(--primary-red);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: "Gotham Book", Arial, sans-serif;
    text-decoration: underline;
}

.edit-btn {
    margin-top: 4px;
    padding: 4px 12px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-family: "Gotham Book", Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-btn:hover { background: var(--dark-gray); }

/* ============================================
               THANK YOU PAGE STYLES
               ============================================ */

.thank-you-container {
    text-align: center;
}


.request-id-box {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-red);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.request-id-box strong {
    font-family: "Conthrax SemiBold", Arial, sans-serif;
    color: var(--dark-gray);
    display: block;
    margin-bottom: 5px;
}

.request-number {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-red);
    font-family: "Gotham Book", Arial, sans-serif;
}

.thank-you-message {
    font-family: "Gotham Book", Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 20px 0;
    color: var(--dark-gray);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Consent & Confirmation Modal ── */
.consent-group { margin-top: 8px; }
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}
.consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-red);
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}
.modal-sub { font-size: 13px; color: #888; margin-bottom: 20px; }
.modal-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}
.modal-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}
.modal-row:last-child { border-bottom: none; }
.modal-lbl { color: #6b7280; width: 70px; flex-shrink: 0; }
.modal-val { color: #111827; font-weight: 500; word-break: break-word; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-cancel {
    padding: 10px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
}
.modal-submit {
    padding: 10px 20px;
    background: #e8342a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.modal-cancel:hover { background: #f9fafb; }
.modal-submit:hover { background: #c9291f; }

/* ── Thank you page (redesigned) ── */
.ty-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--dark-gray);
}
.ty-logo {
    height: 36px;
    width: auto;
    margin-bottom: 28px;
}
.ty-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 36px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ty-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.ty-check svg { width: 28px; height: 28px; }
.ty-heading {
    font-family: "Conthrax Bold", Arial, sans-serif;
    font-size: 22px;
    color: var(--primary-red);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ty-sub {
    font-family: "Gotham Book", Arial, sans-serif;
    font-size: 14px;
    color: var(--medium-gray);
    margin: 0 0 28px;
    line-height: 1.6;
}
.ty-id-box {
    background: var(--light-gray);
    border-left: 4px solid var(--primary-red);
    border-radius: 5px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.ty-id-label {
    font-family: "Conthrax SemiBold", Arial, sans-serif;
    font-size: 11px;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.ty-id-number {
    font-family: monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
    word-break: break-all;
}
.ty-copy-btn {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 12px;
    font-family: "Gotham Book", Arial, sans-serif;
    color: var(--dark-gray);
    background: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}
.ty-copy-btn:hover { background: #f3f4f6; }
.ty-copy-btn.copied { color: #16a34a; border-color: #16a34a; }
.ty-divider {
    border: none;
    border-top: 1px solid var(--light-gray);
    margin: 0 0 20px;
}
body.ty-body {
    display: block;
    padding: 0;
    min-height: 100vh;
    background-color: var(--dark-gray);
}