/* ============================================================
   WeCare Design System
   Brand: #1a1a1a (dark), #96815A (gold), #303b42 (slate)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --color-dark:        #1a1a1a;
  --color-slate:       #303b42;
  --color-gold:        #96815A;
  --color-text:        #303030;
  --color-text-muted:  #808080;
  --color-success:     #5cb85c;
  --color-error:       #d9534f;
  --color-white:       #ffffff;
  --color-bg:          #f5f5f5;
  --font:              'Inter', sans-serif;
  --radius-pill:       100px;
  --radius-card:       10px;
  --transition:        0.2s ease;
  --shadow:            0 2px 12px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  text-align: center;
  background: var(--color-bg);
  color: var(--color-text);
}

/* ============================================================
   Community Page Header
   ============================================================ */
.header {
  align-items: center;
  color: var(--color-white);
  display: flex;
  justify-content: center;
  min-height: 40vh;
  padding: 30px 20px;
  position: relative;
  background: linear-gradient(150deg, #111111 0%, #2a2a2a 100%);
}

.header-logo {
  width: 300px;
  max-width: 80vw;
  height: auto;
  display: block;
  margin: 30px auto;
}

/* ============================================================
   Main Content
   ============================================================ */
main {
  margin-top: 80px;
  padding: 0 20px 80px;
}

.page-question {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 30px;
  letter-spacing: -0.01em;
}

/* ============================================================
   Buttons
   ============================================================ */
.button {
  display: inline-block;
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: var(--color-white);
  background-color: var(--color-dark);
  border: none;
  border-radius: var(--radius-pill);
  width: 300px;
  letter-spacing: 0.3px;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.button:hover {
  background-color: #3a3a3a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  text-decoration: none;
}

.button:focus {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.button:active {
  background-color: #222;
  transform: translateY(2px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Smaller button variant — used on social-review pages */
.button--sm {
  width: 160px;
  margin: 8px;
  font-size: 1rem;
}

/* ============================================================
   Dropdown (index / landing pages)
   ============================================================ */
.dropdown {
  position: relative;
  display: inline-block;
  text-align: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-white);
  min-width: 300px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  overflow-y: auto;
  max-height: 320px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-content a {
  color: var(--color-text);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: background-color var(--transition), color var(--transition);
  text-align: left;
}

.dropdown-content a:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ============================================================
   Site Header Bar (form.php)
   ============================================================ */
.site-header-bar {
  background-color: var(--color-slate);
  border-bottom: 4px solid var(--color-gold);
  padding: 14px 0;
}

.site-header-bar img {
  max-width: 150px;
  margin-bottom: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Form Page — Hero
   ============================================================ */

.form-hero {
  background: linear-gradient(150deg, #111 0%, #303b42 100%);
  padding: 52px 24px;
  text-align: center;
}

.form-hero-logo {
  width: 200px;
  max-width: 70vw;
  display: block;
  margin: 0 auto;
}

/* ============================================================
   Form Page — Layout
   ============================================================ */
.form-section {
  background: #f4f2ef;
  margin: 0;
  padding: 0;
}

.form-main {
  background: #f4f2ef;
  margin-top: 0;
  padding: 56px 0 80px;
}

.form-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}

.form-layout > .col-md-6 {
  float: none;
}

/* ============================================================
   Form Card
   ============================================================ */
.form-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.10);
  margin-bottom: 32px;
}

.form-heading {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

/* ============================================================
   Inputs
   ============================================================ */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.input-wrapper {
  margin-bottom: 28px;
}

.input-wrapper label,
.input-wrapper > label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.required-mark {
  color: var(--color-error);
}

.inputField {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e4e0db;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--color-text);
  border-radius: 0;
  transition: border-color var(--transition);
}

.inputField:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
}

.inputField::placeholder {
  color: #c8c4bf;
}

textarea.inputField {
  resize: vertical;
  min-height: 110px;
  padding-top: 8px;
}

select.inputField {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2396815A' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.InputError {
  border-bottom-color: var(--color-error) !important;
}

/* ============================================================
   Ratings Grid
   ============================================================ */
.ratings-block {
  background: #f9f7f5;
  border-radius: 14px;
  padding: 28px 24px;
  margin: 28px 0;
}

.ratings-block-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.ratings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.rating-item {
  text-align: center;
}

.rating-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.rating-item--overall .rating-item-label {
  color: var(--color-text);
  font-weight: 700;
}

.recommend-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid #eae6e1;
  margin-top: 4px;
}

.recommend-row .rating-item-label {
  margin: 0;
  white-space: nowrap;
}

.recommend-row fieldset {
  display: flex;
  gap: 20px;
  align-items: center;
}

.recommend-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   Submit Button
   ============================================================ */
.wecareSubmit {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--color-dark);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  margin-top: 8px;
  text-align: center;
}

.wecareSubmit:hover {
  background-color: var(--color-gold);
}

.wecareSubmit:active {
  transform: translateY(1px);
}

/* ============================================================
   Status / utility
   ============================================================ */
a.hover, a.active { color: var(--color-gold); }

.grecaptcha-badge { visibility: hidden; }

.google-message {
  margin: 20px 0 0;
  color: var(--color-text-muted);
  font-size: 0.75em;
  text-align: center;
}

.google-message a { color: var(--color-text-muted); }

.wecareErrors { color: var(--color-error); margin-top: 8px; }

.wecareConfirmation {
  display: none;
  text-align: center;
  font-size: 1.4rem;
  padding: 60px 20px;
  color: var(--color-text);
  line-height: 1.6;
}

.success-icon { color: var(--color-success); }

.star-rating-error {
  display: none;
  font-size: 0.85rem;
  color: var(--color-error);
  padding: 8px 0;
  text-align: center;
}

/* ============================================================
   Info Panel (right column)
   ============================================================ */
.info-panel {
  padding: 0 0 0 36px;
}

.info-panel-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 28px;
  line-height: 1.25;
}

.info-panel-title .gold-text {
  color: var(--color-gold);
}

.info-banner-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 28px;
  display: block;
}

.info-panel p {
  color: #666;
  line-height: 1.85;
  font-size: 0.9rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  display: flex;
  text-align: center;
  justify-content: center;
  background: #1a1a1a;
  padding: 20px 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover { color: var(--color-gold); }

/* ============================================================
   Icon spacing (Font Awesome social icons)
   ============================================================ */
.icon-space {
  margin-right: 9px;
}

/* ============================================================
   Star Ratings
   ============================================================ */
.rating1, .rating2, .rating3, .rating5, .rating6, .rating7, .rating8 {
  display: inline-block;
  unicode-bidi: bidi-override;
  direction: rtl;
  text-align: left;
  vertical-align: middle;
}

.rating1 input, .rating2 input, .rating3 input,
.rating5 input, .rating6 input, .rating7 input, .rating8 input {
  position: absolute;
  left: -999999px;
}

.rating1 label, .rating2 label, .rating3 label,
.rating5 label, .rating6 label, .rating7 label, .rating8 label {
  display: inline-block;
  font-size: 0;
}

.rating1 > label:before, .rating2 > label:before, .rating3 > label:before,
.rating5 > label:before, .rating6 > label:before, .rating7 > label:before,
.rating8 > label:before {
  position: relative;
  font: 24px/1 FontAwesome;
  display: block;
  content: "\f005";
  background: -webkit-linear-gradient(-45deg, #d9d9d9 0%, #b3b3b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rating1 > label:hover:before,
.rating1 > label:hover ~ label:before,
.rating1 > label.selected:before,
.rating1 > label.selected ~ label:before,
.rating2 > label:hover:before,
.rating2 > label:hover ~ label:before,
.rating2 > label.selected:before,
.rating2 > label.selected ~ label:before,
.rating3 > label:hover:before,
.rating3 > label:hover ~ label:before,
.rating3 > label.selected:before,
.rating3 > label.selected ~ label:before,
.rating5 > label:hover:before,
.rating5 > label:hover ~ label:before,
.rating5 > label.selected:before,
.rating5 > label.selected ~ label:before,
.rating6 > label:hover:before,
.rating6 > label:hover ~ label:before,
.rating6 > label.selected:before,
.rating6 > label.selected ~ label:before,
.rating7 > label:hover:before,
.rating7 > label:hover ~ label:before,
.rating7 > label.selected:before,
.rating7 > label.selected ~ label:before,
.rating8 > label:hover:before,
.rating8 > label:hover ~ label:before,
.rating8 > label.selected:before,
.rating8 > label.selected ~ label:before {
  background: -webkit-linear-gradient(-45deg, #fcb551 0%, #d69a45 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Accessibility helpers (extracted from form.php)
   ============================================================ */
.visually-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  margin: -1px;
}

.visible-when-focused:focus {
  clip: auto;
  height: auto;
  overflow: visible;
  position: static;
  white-space: normal;
  width: auto;
  margin: auto;
}

.bypass-block-link {
  position: absolute;
  text-decoration: none;
  background: #ffffcc;
  padding: 0.2em;
  z-index: 10;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767px) {
  .button {
    width: 90%;
    font-size: 1.25rem;
  }

  .button--sm {
    width: 45%;
    font-size: 1.1rem;
  }

  .dropdown-content a {
    font-size: 1.2rem;
    padding: 14px 20px;
  }

  .header-logo {
    width: 60vw;
  }

  .page-question {
    font-size: 2rem;
  }

  .form-layout > .col-md-6 {
    width: 100%;
    padding: 0 16px;
  }

  .form-card {
    padding: 28px 20px;
  }

  .info-panel {
    padding: 32px 0 0;
  }

  .info-panel-title,
  .info-panel p {
    text-align: left;
    padding: 0 16px;
  }

  .info-banner-img {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .ratings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .recommend-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
