body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f6f8fa;
}

.quote-outer {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 0;
}

.quote-card {
  background: #fff;
  border-radius: 22px;
  max-width: 740px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(37, 172, 168, 0.07), 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 2.4rem 2rem 2.1rem 2rem;
  border: 1px solid #e2e8ed;
}

.quote-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #25aca8;
  margin-bottom: 1.4rem;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.quote-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #003869;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
  border: 1.5px solid #d7e6f2;
  border-radius: 10px;
  background: #f8fbfd;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.7rem;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #30b3b1;
  background: #f3fcfc;
}

.quote-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='gray' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5H5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1em;
  cursor: pointer;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form button[type="submit"] {
  background: #25aca8;
  color: #fff;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 10px;
  margin-top: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 172, 168, 0.15);
}

.quote-form button[type="submit"]:hover {
  background: #18918b;
}

/* Inline Options */
.inline-options {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.inline-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: #003869;
  margin-bottom: 0;
}

/* Camera + Upload Buttons */
.upload-buttons {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}
.upload-btn,
.modal-button {
  background-color: #25aca8;
  color: white;
  font-weight: 600;
    width: 100%;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}
.upload-btn,
.modal-button:hover {
  background-color: #18918b;
}

/* Preview Containers */
#cameraPreview {
  width: 100%;
  border-radius: 12px;
  background-color: #000;
  aspect-ratio: 4/3;
  object-fit: cover;
}

#photoCanvas {
  width: 100%;
  border-radius: 12px;
  margin-top: 0.5rem;
}

/* Image Preview Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

/* Image Card */
.image-preview {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 ratio */
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f8f8f8;
}

.image-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Remove Button */
.image-preview .remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.image-preview .remove-btn:hover {
  background-color: rgba(180, 0, 0, 0.9);
}

/* Insurance Section */
.insurance-section {
  margin-top: 1.5rem;
}

.insurance-section label {
  font-weight: 600;
  color: #003869;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  display: block;
}

#thirdPartyDetails {
  border-left: 3px solid #25aca8;
  background: #f9fefe;
  padding: 1rem 1rem 0.5rem 1rem;
  margin-top: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.third-party-prompt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.7rem;
}

/* Responsive */
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .quote-card {
    padding: 1.15rem 0.8rem;
    max-width: 98vw;
  }

  .quote-title {
    font-size: 1.25rem;
  }

  .quote-form button[type="submit"] {
    font-size: 1rem;
  }

  .inline-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.custom-file-upload {
  background: #ffc600;
  color: #134a6c;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.custom-file-upload:hover {
  background: #ffe17c;
  transform: translateY(-1px);
}

/* Hide the default file input */
.custom-file-upload input[type="file"] {
  display: none;
}


