/* ============================================================
   Contact Form Styles — skynotes.ca
   ============================================================ */

/* Hero Section */
.contact-hero {
  background: var(--gradient-hero);
  padding: 5rem 0 4rem;
  text-align: center;
  color: white;
}

.contact-hero .section-label {
  color: var(--accent-hover);
}

.contact-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
}

.contact-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Form Container */
.contact-form-section {
  padding: 7rem 0 5rem;
}

.contact-form-wrap {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ── Info panel (right column) ── */
.contact-info-panel {
  padding: 1rem 0 1rem 1.5rem;
  position: sticky;
  top: 90px;
}

.contact-info-panel .section-label {
  color: var(--accent-hover);
}

.contact-info-panel h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-info-panel .contact-intro {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-reasons-list li {
  margin-bottom: 1.5rem;
}

.contact-reasons-list .reasons-header {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  margin-bottom: 0.3rem;
}

.contact-reasons-list .reasons-header i {
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 0.1rem;
}

.contact-reasons-list strong {
  display: inline-block;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  line-height: 1.1;
}

.contact-reasons-list strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.contact-reasons-list strong:hover::after {
  transform: scaleX(1);
}

.contact-reasons-list span {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .contact-form-section {
    padding-top: 5rem;
  }
  .contact-info-panel {
    padding: 0 0 2rem;
    position: static;
  }
}

/* Form Labels */
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

/* Form Inputs & Selects */
.form-control,
.form-select {
  background-color: #f9fafb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(48, 219, 0, 0.15);
  outline: none;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235a6577' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

.form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Group Spacing */
.form-group {
  margin-bottom: 1.5rem;
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Form Row for 2-Column Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Pain Points Group — Pill-Style Checkboxes */
.pain-points-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

@media (min-width: 768px) {
  .pain-points-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pain-point-pill {
  position: relative;
  display: inline-block;
  width: 100%;
}

.pain-point-pill input[type="checkbox"] {
  display: none;
}

.pain-point-pill label {
  display: block;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  background-color: #f9fafb;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  user-select: none;
}

.pain-point-pill label:hover {
  border-color: var(--accent-hover);
  background-color: rgba(0, 201, 219, 0.05);
}

.pain-point-pill input[type="checkbox"]:checked + label {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
  font-weight: 600;
}

.pain-point-pill input[type="checkbox"]:checked + label::before {
  content: "✓ ";
  margin-right: 0.3rem;
}

.pain-point-pill input[type="checkbox"]:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hidden Pain Points Container */
.pain-points-wrap {
  margin-bottom: 1.5rem;
}

.pain-points-wrap .form-label {
  margin-bottom: 1rem;
}

/* Checkbox and Radio Custom Styling */
.form-check {
  margin-bottom: 1rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(48, 219, 0, 0.15);
}

.form-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(48, 219, 0, 0.15);
}

.form-check-label {
  color: var(--text-dark);
  cursor: pointer;
  margin-left: 0.5rem;
}

/* Required Indicator */
.required {
  color: #dc3545;
  margin-left: 0.25rem;
}

/* Submit Button Wrapper */
.submit-btn-wrap {
  margin-top: 2rem;
  text-align: center;
}

.submit-btn-wrap .btn {
  min-width: 280px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (max-width: 576px) {
  .submit-btn-wrap .btn {
    width: 100%;
  }
}

/* reCAPTCHA Wrapper */
.recaptcha-wrap {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.g_recaptcha_container {
  display: inline-flex;
  justify-content: center;
}

/* Form Error Messages */
.form-error {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 3px solid #dc3545;
  border-radius: 4px;
}

.form-error.show {
  display: block;
}

.form-error strong {
  font-weight: 600;
}

/* Submit Button States */
.btn-submit {
  position: relative;
  transition: all 0.3s ease;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  right: 1.5rem;
  margin-top: -8px;
  border: 2px solid rgba(11, 42, 80, 0.3);
  border-radius: 50%;
  border-top-color: var(--navy);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   Thank You Page Styles
   ============================================================ */

.thankyou-hero {
  background: var(--gradient-hero);
  padding: 5rem 0 4rem;
  text-align: center;
  color: white;
}

.thankyou-hero .section-label {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.thankyou-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: white;
}

.thankyou-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.thankyou-cta {
  margin-top: 2rem;
}

/* What Happens Next Section */
.what-happens-next {
  padding: 4rem 0;
  background: white;
}

.what-happens-next .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.what-happens-next .section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.what-happens-next .section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.step-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.step-card:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(0, 201, 219, 0.12);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--navy);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Section */
.thankyou-faq {
  padding: 4rem 0;
  background: var(--gradient-off-white);
}

.thankyou-faq .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  transition: all 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-question::after {
  content: "▼";
  font-size: 0.75rem;
  color: var(--accent);
  transition: transform 0.2s ease;
  margin-left: 1rem;
}

.faq-item.open .faq-question::after {
  transform: rotate(-180deg);
}

.faq-answer {
  display: none;
  padding: 1.25rem;
  background: #f9fafb;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-question h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

/* Contact CTA Strip */
.contact-cta-strip {
  background: var(--gradient-hero);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.contact-cta-strip h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-cta-strip p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.contact-cta-strip a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-cta-strip a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
