/* Global Styles for CICA Application Form */

/* ===== BASE STYLES ===== */
body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== LAYOUT COMPONENTS ===== */
.container-fluid {
  margin-top: 1rem;
}

.form-container {
  background-color: white;
  border-radius: 10px;
  padding: 18px 16px 22px 16px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.07);
  margin-bottom: 24px;
  width: 100%;
  max-width: none;
}

.form-section {
  display: none;
  margin-top: 5vh;
}

.form-section.active {
  display: block;
}

/* ===== TYPOGRAPHY COMPONENTS ===== */
.form-title {
  font-size: 1.49rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #0b0c0c;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 7px;
  margin-top: 5vh;
}

.question-text {
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  margin-left: 1vh;
}

.form-note {
  color: #6c757d;
  font-size: 0.93rem;
  margin-bottom: 10px;
}

.required {
  color: red;
}

/* ===== FORM INPUT COMPONENTS ===== */
.form-control {
  border-radius: 12px;
  border: 1.5px solid #dde2e6;
  font-size: 1.11rem;
  background: #fafdff;
  box-shadow: 0 1px 4px rgba(13, 110, 253, 0.03);
  transition: border 0.18s, box-shadow 0.18s;
  min-height: 2.8rem;
  outline: none;
  /* padding: 0.75rem 1rem; */
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px #cfe2ff, 0 2px 8px rgba(13, 110, 253, 0.13);
  background: #fff;
}

.form-control::placeholder {
  color: #bfc9d1;
  opacity: 1;
  font-size: 1rem;
}

/* ===== CHECKBOX AND RADIO COMPONENTS ===== */
.form-check {
  background: #f8fafd;
  border-radius: 7px;
  padding: 0.55rem 0.9rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  min-height: 2.2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid #e5e7eb;
  transition: border 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

.form-check:hover,
.form-check:focus-within {
  border: 1.5px solid #0d6efd;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.06);
}

.form-check-input[type="radio"],
.form-check-input[type="checkbox"] {
  width: 1.35em;
  height: 1.35em;
  margin-right: 1em;
  border-radius: 50%;
  border: 2px solid #bfc9d1;
  background: #fff;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.1);
}

.form-check-label {
  font-size: 14px;
  color: #222;
  font-weight: 500;
  cursor: pointer;
}

/* ===== CUSTOM CHECKBOX ===== */
.custom-box {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid black;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  background-color: white;
  transition: border-color 0.2s;
}

.custom-box:checked {
  background-color: white;
  border-color: black;
}

.custom-box:checked::after {
  content: "✔";
  color: black;
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  pointer-events: none;
}

/* ===== BUTTON COMPONENTS ===== */
.btn-primary,
.btn-secondary {
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.65rem 1.6rem;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.05);
  border: none;
  transition: background 0.18s, box-shadow 0.18s;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #0b5ed7;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.13);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #6c757d;
  box-shadow: 0 4px 16px rgba(108, 117, 125, 0.13);
}

/* ===== NAVIGATION COMPONENTS ===== */
.navigation-buttons {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #e5e7eb;
}

/* ===== PROGRESS BAR COMPONENTS ===== */
#progress-wrapper {
  margin-bottom: 24px;
  font-weight: 600;
}

.progress-bar-bg {
  width: 100%;
  height: 15px;
  background: #d7dde2;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: #0B2147;
  border-radius: 3px 0 0 3px;
  transition: width .35s ease;
}

#progress-text {
  margin-left: 0.5vh;
  font-size: larger;
}

/* ===== CONDITIONAL SECTIONS ===== */
.conditional-section {
  padding-left: 14px;
  border-left: 3px solid #1d70b8;
  margin-top: 10px;
  margin-bottom: 10px;
}

.address-fields {
  margin-top: 10px;
}

/* ===== QUESTION COMPONENTS ===== */
.question {
  margin: 2.5vh 0vh;
}

.injury_field {
  margin-bottom: 4vh;
  margin-top: 1vh;
}

.injury_field .question-text {
  font-size: 1rem;
}

/* ===== DOCUMENT TABLE COMPONENTS ===== */
#documentsTable tbody tr:nth-child(odd) {
  background-color: #f3f4f6;
}

#documentsTable tbody tr:hover {
  background-color: #dbeafe;
}

.remove-document-btn {
  background: transparent;
  border: none;
  color: #dc2626;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  line-height: 1;
}

.remove-document-btn:hover {
  color: #b91c1c;
}

/* ===== PREVIEW COMPONENTS ===== */
.preview-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.preview-section {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-section h5 {
  color: #0d6efd;
  margin-bottom: 15px;
}

.preview-section p {
  margin-bottom: 8px;
}

.preview-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.edit-btn {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  margin-left: 15px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  margin-bottom: 0%;
}

.edit-btn:hover {
  background: #0d6efd;
}

.edit-btn.editing {
  background: #d32f2f;
}

.edit-btn i {
  margin-right: 5px;
}

/* ===== SIGNATURE COMPONENTS ===== */
.signature-field {
  margin: 20px 0;
}

#signaturePad {
  border: 1px solid #ddd;
  background: #f8f8f8;
  border-radius: 8px;
}

.signature-actions {
  margin-top: 10px;
}

#clearSignature {
  border-radius: 4px;
}

.signature_field_margin {
  margin-top: 0%;
}

/* ===== AGREEMENT COMPONENTS ===== */
.agreement_checkbox input[type=checkbox] {
  zoom: 2;
}

/* ===== HEADER COMPONENTS ===== */
.main-div {
  background-color: #0B2147;
  height: 75px;
}

/* ===== UTILITY CLASSES ===== */
.mb-3 {
  margin-bottom: 1rem;
}

.hideButton {
  transition: opacity 0.3s;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .form-container {
    padding: 15px 12px 18px 12px;
  }
  
  .form-title {
    font-size: 1.3rem;
  }
  
  .question-text {
    font-size: 1.1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
  }
} 