/* Consultation Form Styles — Rootophia Pet Services */

/* Hero */
.consult-hero {
  padding: 48px 0 30px 0;
  background: linear-gradient(135deg, #f57c00 0%, #f9b15a 100%);
  color: white;
}
.consult-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.consult-hero p {
  margin: 14px 0 0 0;
  max-width: 68ch;
  font-size: 16px;
  opacity: 0.94;
  line-height: 1.6;
}

/* Container */
.consult-container {
  max-width: 780px;
  margin: 0 auto;
}

/* Cards */
.consult-card {
  background: rgba(255,255,255,0.96);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  padding: 28px 24px;
  margin-bottom: 18px;
}

.consult-card--contract {
  border-left: 5px solid var(--orange);
}

.consult-card--submit {
  text-align: center;
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.consult-card--thankyou {
  text-align: center;
  padding: 48px 28px;
  border-top: 6px solid var(--green);
}

/* Section Titles */
.consult-section-title {
  margin: 0 0 18px 0;
  font-size: clamp(19px, 2.2vw, 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.consult-subtitle {
  margin: 0 0 12px 0;
  color: rgba(0,0,0,0.68);
  font-size: 15px;
}

/* Field Grid */
.consult-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.consult-fields .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .consult-fields {
    grid-template-columns: 1fr;
  }
}

/* Labels */
.consult-card label {
  font-weight: 700;
  font-size: 15px;
  display: block;
  color: var(--ink);
}

.req {
  color: #e53935;
  font-weight: 800;
}

/* Inputs */
.consult-card input[type="text"],
.consult-card input[type="email"],
.consult-card input[type="tel"],
.consult-card input[type="date"],
.consult-card input:not([type]),
.consult-card select,
.consult-card textarea {
  width: 100%;
  margin-top: 6px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: #fafafa;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.consult-card input:focus,
.consult-card select:focus,
.consult-card textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,124,0,0.12);
}

.consult-card textarea {
  min-height: 90px;
  resize: vertical;
}

/* File Upload */
.consult-card input[type="file"] {
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 2px dashed rgba(0,0,0,0.15);
  background: #fefefe;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.consult-card input[type="file"]:hover {
  border-color: var(--orange);
  background: #fff8f0;
}

/* Help text */
.consult-card .help {
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  margin-top: 4px;
}

/* Checkbox Options */
.consult-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .consult-checks {
    grid-template-columns: 1fr;
  }
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8f8f8;
  border: 1.5px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-weight: 600 !important;
  font-size: 15px;
}

.check-option:hover {
  background: #fff4e6;
  border-color: rgba(245,124,0,0.2);
}

.check-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  margin-top: 1px;
  accent-color: var(--orange);
  cursor: pointer;
}

.check-option span {
  line-height: 1.4;
}

/* Agreement checkboxes */
.consult-agreements {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-option.agreement {
  background: #f0f8f0;
  border-color: rgba(140,207,138,0.3);
}

.check-option.agreement:hover {
  background: #e8f5e8;
  border-color: rgba(140,207,138,0.5);
}

/* Contract Text */
.contract-text {
  background: #fafafa;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  max-height: 400px;
  overflow-y: auto;
}

.contract-text p {
  margin: 0 0 14px 0;
  line-height: 1.65;
  color: rgba(0,0,0,0.78);
  font-size: 14.5px;
}

.contract-text p:last-child {
  margin-bottom: 0;
}

/* Signature input */
.signature-input {
  font-style: italic;
  font-size: 18px !important;
  letter-spacing: 0.3px;
}

/* Notice Box */
.consult-notice {
  background: #fff3e0;
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0,0,0,0.82);
}

/* Submit Button */
.consult-submit-btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 18px 40px;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  background: var(--orange);
  color: white;
  box-shadow: 0 10px 30px rgba(245,124,0,0.3);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.consult-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(245,124,0,0.38);
}

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

.consult-submit-note {
  margin: 14px 0 0 0;
  color: rgba(0,0,0,0.55);
  font-size: 14px;
}

/* Thank You State */
.thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 36px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  box-shadow: 0 10px 30px rgba(140,207,138,0.35);
}

.consult-card--thankyou h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  color: var(--ink);
}

.consult-card--thankyou p {
  margin: 0 0 10px 0;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(0,0,0,0.72);
  line-height: 1.6;
}

/* Conditional Field */
.conditional-field {
  margin-top: 12px;
}

/* Mobile Touch Improvements */
@media (max-width: 600px) {
  .consult-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .consult-card label {
    font-size: 16px;
  }

  .consult-card input[type="text"],
  .consult-card input[type="email"],
  .consult-card input[type="tel"],
  .consult-card input[type="date"],
  .consult-card input:not([type]),
  .consult-card select,
  .consult-card textarea {
    padding: 16px 14px;
    font-size: 16px;
  }

  .consult-submit-btn {
    width: 100%;
    padding: 18px 20px;
    font-size: 17px;
  }

  .consult-hero {
    padding: 36px 0 24px 0;
  }

  .contract-text {
    max-height: 300px;
    padding: 16px;
  }
}

/* Multi-Dog Entry */
.dog-entry {
  position: relative;
  border: 2px solid rgba(245,124,0,0.15);
  border-radius: 24px;
  padding: 8px;
  margin-bottom: 18px;
  background: rgba(255,248,240,0.3);
}

.dog-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 8px;
}

.dog-entry-label {
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--orange);
  letter-spacing: -0.3px;
}

.dog-remove-btn {
  background: #e53935;
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.dog-remove-btn:hover {
  background: #c62828;
  transform: translateY(-1px);
}

.consult-add-dog-btn {
  display: inline-block;
  border: 2.5px dashed var(--orange);
  border-radius: 999px;
  padding: 16px 36px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  background: transparent;
  color: var(--orange);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.consult-add-dog-btn:hover {
  background: var(--orange);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .dog-entry {
    padding: 6px;
    border-radius: 18px;
  }
  .consult-add-dog-btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
  }
}

/* Select dropdown styling */
.consult-card select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
