/* ===== General Reset & Base Styling ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 420px; /* perfect for mobile */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

/* ===== Title ===== */
.title {
  color: #b30000;
  font-size: 1.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

/* ===== SHID Box ===== */
.shid-box {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #0044cc;
  margin: 10px auto 20px;
  border: 2px solid #0044cc;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

/* ===== Form Styling ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  border: 1.8px solid #b30000;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.section-title {
  color: #b30000;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 12px;
}

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

label {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  transition: border 0.3s ease;
}

input:focus,
select:focus {
  border-color: #b30000;
  outline: none;
}

select {
  background-color: #f9f9f9;
}

/* ===== Button Styling ===== */
.btn {
  width: 100%;
  padding: 14px;
  background: #b30000;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #990000;
}

/* ===== Status Text ===== */
.status-text {
  text-align: center;
  font-weight: bold;
  color: #333;
  margin-top: 15px;
}

/* ========================= */
/* Confirmation Page Styles */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.status-container {
  width: 100%;
  max-width: 380px;
}

/* ===== Header ===== */
.status-header {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  padding: 14px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 15px;
}

.status-pass {
  background-color: #28a745; /* Green */
}

.status-fail {
  background-color: #b30000; /* Red */
}

/* ===== Equipment Title ===== */
.equipment-title {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #b30000;
  margin-bottom: 12px;
}

/* ===== Info Sections ===== */
.info-section {
  border: 1.5px solid #b30000;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 8px;
  background: #fff;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.info-row label {
  font-size: 0.95em;
  font-weight: bold;
  width: 50%;
  text-align: left;
}

.info-row input {
  width: 45%;
  padding: 6px;
  font-size: 0.9em;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  background-color: #f9f9f9;
}

/* ===== Buttons ===== */
.btn {
  width: 100%;
  padding: 14px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}

.btn-primary {
  background-color: #b30000;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #990000;
}

.btn-outline {
  background: #fff;
  color: #b30000;
  border: 2px solid #b30000;
}

.btn-outline:hover {
  background: #f8f8f8;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.status-container {
    width: 100%;
    max-width: 420px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Status Header */
.status-header {
    width: 100%;
    font-size: 1.4em;
    font-weight: bold;
    color: #fff;
    padding: 14px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 12px;
}

.status-pass {
    background-color: #28a745; /* Green */
}

.status-fail {
    background-color: #b30000; /* Red */
}

/* Divider */
.divider {
    width: 100%;
    border: none;
    border-top: 1.5px solid #999;
    margin: 6px 0 12px;
}

/* Equipment Title */
.equipment-title {
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #b30000;
    margin: 6px 0;
}

/* Info Sections */
.info-section {
    border: 2px solid #b30000;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row label {
    font-size: 0.9em;
    font-weight: bold;
    color: #222;
    width: 55%;
}

.info-row input {
    width: 40%;
    padding: 6px;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f9f9f9;
    text-align: center;
}

input.fail {
    color: #b30000;
    font-weight: bold;
}

input.pass {
    color: #28a745;
    font-weight: bold;
}

/* Alert Box */
.alert-box {
    width: 100%;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-align: center;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
}

.btn-primary {
    background-color: #b30000;
    color: #fff;
    border: none;
}

.btn-outline {
    background: #fff;
    color: #b30000;
    border: 2px solid #b30000;
}
/* ===== Confirmation Page Styles ===== */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8f8f8;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.confirmation-container {
  width: 100%;
  max-width: 380px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.confirmation-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #b30000;
  margin-bottom: 15px;
}

.confirm-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.confirm-header {
  font-size: 1.4em;
  font-weight: bold;
  color: #28a745; /* Green for success */
  margin-bottom: 8px;
}

.confirm-message {
  font-size: 1em;
  color: #333;
  margin-bottom: 15px;
}

.details-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  font-size: 0.95em;
  margin-bottom: 15px;
}

.details-box p {
  margin: 8px 0;
}

.warning-box {
  background: #fff8e1;
  border: 1px solid #ffe58f;
  color: #8c6d1f;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.confirm-btn {
  width: 100%;
  padding: 14px;
  background: #b30000;
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.confirm-btn:hover {
  background: #990000;
}
body {
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.inspection-container {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;   /* ✅ ensures white covers full screen */
  background: #fff;    /* ✅ keep white background */
  padding: 20px;
  margin: 10px;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* Header */
.inspection-header {
  background: #b30000;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  border-radius: 6px;
}

.inspection-header h1 {
  margin: 0;
}

/* Equipment Title */
.equipment-title {
  text-align: center;
  color: #0044cc;
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 6px;
}

.subtitle {
  text-align: center;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Info Bar */
.info-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.95em;
  font-weight: bold;
  margin-bottom: 5px;
}

.underline {
  width: 100%;
  height: 2px;
  background-color: #b30000;
  margin-bottom: 20px;
}

/* ============================= */
/* === Inspection Form Styles === */
/* ============================= */
/* === Inspection Form Page === */
.inspection-container {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;   /* ✅ ensures white covers full screen */
  background: #fff;    /* ✅ keep white background */
  margin: 0 auto;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

/* Header Bar */
.inspection-header {
  background: #b30000;
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 20px;
  border-radius: 6px;
}

/* Equipment Title */
.equipment-title {
  text-align: center;
  color: #0044cc;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 4px;
}

.subtitle {
  text-align: center;
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 12px;
}

/* Location & Time */
.info-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.95em;
  font-weight: bold;
  margin-bottom: 4px;
}

.underline {
  width: 100%;
  height: 2px;
  background-color: #b30000;
  margin-bottom: 20px;
}

/* Form Fields */
.inspection-form {
  display: flex;
  flex-direction: column;
}

.inspection-form label {
  font-weight: bold;
  font-size: 0.95em;
  margin-bottom: 6px;
}

.inspection-form input,
.inspection-form select {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 1.5px solid #000;
  border-radius: 6px;
  font-size: 1em;
  background-color: #f5f5f5;
  transition: border 0.3s ease;
}

.inspection-form input:focus,
.inspection-form select:focus {
  border-color: #b30000;
  outline: none;
}

/* Signature Pad */
.signature-container {
  border: 1.5px solid #000;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

#signaturePad {
  width: 100%;
  height: 150px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.clear-btn {
  margin-top: 10px;
  background-color: #ccc;
  color: #000;
  padding: 10px 14px;
  font-size: 0.9em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.clear-btn:hover {
  background-color: #aaa;
}

/* Submit Button */
.submit-btn {
  background-color: #b30000;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

.submit-btn:hover {
  background-color: #990000;
}
/* Inspection Confirmation Page */
/* === Full-Screen Mobile Confirmation Styles === */
.confirmation-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 480px;
    height: 50vh; /* your chosen height */
    box-sizing: border-box;
}

.checkmark {
    width: 160px;
    height: 160px;
    background-color: #28a745; /* Green by default */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.checkmark img {
    width: 80px;
    height: 80px;
}

.confirmation-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 50px; /* add spacing before button */
    color: #000;
}

.confirmation-btn {
    background-color: #c00;
    color: white;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    padding: 18px;
    width: 90%;
    max-width: 400px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
/* Full page background */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2; /* Light gray for outside area */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Login-Mobile Page */
/* General page background */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f5f5, #eaeaea);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* ✅ allow scrolling inside */
    min-height: 100vh; /* ✅ use min-height for scrollable */
}

/* Phone frame styling */
.phone-frame {
    width: 375px;
    height: 720px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* ✅ keep scroll inside */
}

/* Status bar mock */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Logo circle placeholder */
.logo-circle {
    width: 60px;
    height: 60px;
    background: #c00000;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Title and subtitle */
.login-title {
    color: #c00000;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0 5px;
}

.login-subtitle {
    color: #666;
    font-size: 15px;
    text-align: center;
    margin-bottom: 25px;
}
/* ===== Form group inputs and selects ===== */
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #b30000;
  outline: none;
}

/* ===== Button styling ===== */
.btn {
  width: 100%;
  padding: 14px;
  background-color: #b30000; /* SmartHeights red */
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #990000; /* Darker red on hover */
}

/* ===== Status text below form ===== */
.status-text {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  color: #333;
}

.status-text a {
  color: #b30000;
  font-weight: bold;
  text-decoration: none;
}

.status-text a:hover {
  text-decoration: underline;
}
/* ===== Scoped Step 1 & Step 2 Create Account Styling ===== */
.phone-frame {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  width: 375px;
  height: 720px;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  margin: 60px auto 0 auto; /* push down from top */
}

.phone-frame .status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  user-select: none;
}

.phone-frame .logo-circle {
  width: 60px;
  height: 60px;
  background: #b30000;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.phone-frame .login-title {
  color: #b30000;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.phone-frame .login-subtitle {
  color: #666;
  font-size: 15px;
  text-align: center;
  margin-bottom: 25px;
}

.phone-frame .form-group input,
.phone-frame .form-group select {
  width: 100%;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.phone-frame .form-group input:focus,
.phone-frame .form-group select:focus {
  border-color: #b30000;
  outline: none;
}

.phone-frame .btn {
  width: 100%;
  padding: 14px;
  background-color: #b30000;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.3s ease;
}

.phone-frame .btn:hover {
  background-color: #990000;
}

.phone-frame .status-text {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
  color: #333;
}

.phone-frame .status-text a {
  color: #b30000;
  font-weight: bold;
  text-decoration: none;
}

.phone-frame .status-text a:hover {
  text-decoration: underline;
}
/* Back to Step 1 link styling */
.back-step1-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  color: #b30000;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.1em;
}

.back-step1-link:hover {
  text-decoration: underline;
}
/* Make all form fields appear with red borders */
input,
select,
textarea {
  border: 1.8px solid #b30000 !important; /* SmartHeights red */
  border-radius: 8px;
  background: #fff;
}

/* On focus, make the red border thicker or brighter */
input:focus,
select:focus,
textarea:focus {
  border-color: #990000; /* Darker red on focus */
  outline: none;
  box-shadow: 0 0 4px rgba(179, 0, 0, 0.5);
}

/* Readonly fields should still keep the red border but look disabled */
input[readonly] {
  background: #f9f9f9;
  color: #555;
  border: 1.8px solid #b30000;
}
/* ===== YES / NO button group (mobile, glove-friendly) ===== */
.checklist-item { margin-bottom: 14px; }

.checklist-item label {
  display:block;
  font-weight:700;
  font-size: 0.98em;
  margin-bottom: 8px;
}

/* Container for the two buttons */
.pf-group {
  display: flex;
  gap: 10px;
}

/* Base button style */
.pf-btn {
  flex: 1;
  padding: 14px 12px;                 /* big touch target */
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: transform .02s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

/* Brand-aligned colours */
.pf-btn.yes { 
  background: #e9f6ee;
  color: #1f7a3a; 
  border-color: #bfe6c9;
}
.pf-btn.no { 
  background: #fdeaea; 
  color: #b30000;                /* SmartHeights red */
  border-color: #f3b9bc;
}

/* Press feedback */
.pf-btn:active { transform: translateY(1px); }

/* Selected states */
.pf-btn.active.yes { 
  background: #28a745; 
  color: #fff; 
  border-color: #1e8a37;
}
.pf-btn.active.no { 
  background: #b30000; 
  color: #fff; 
  border-color: #8f0000;
}

/* Keyboard accessibility outline */
.pf-btn:focus-visible {
  outline: 3px solid #0044cc; 
  outline-offset: 2px;
  border-radius: 12px;
}

@media (max-width: 360px) {
  .pf-btn { padding: 12px 10px; font-size: .95rem; }
}
