/* Riverstone Dental: VISIBLE UX changes approved by Razib 2026-11-27 (some "may revert").
   Each block carries its review number. To revert one, delete its block; to revert all, delete this file.
   Loaded after rs.css by riverstone.php (handle riverstone-ux). */

/* #1 buttons: deeper rose so white text reads (4.5:1 instead of 2.8:1). Footer nav bar left as is. */
.rs-btn, a.rs-btn, .rs-contact__form .fluentform .ff-btn-submit { background-color: #a06865; border-color: #a06865; color: #fff; }
.rs-btn:hover, a.rs-btn:hover { background-color: #8e5a57; border-color: #8e5a57; }
.rs-contact__form .fluentform .ff-btn-submit:hover { background-color: #8e5a57; opacity: 1; }

/* #3 menu links and header phone a little darker (4.9:1 on white) */
.rs-nav .bricks-nav-menu > li > a, .rs-nav .bricks-nav-menu > li > .brx-submenu-toggle > a, .rs-nav .bricks-nav-menu .sub-menu a,
.rs-header__phone, .bricks-mobile-menu a, .bricks-mobile-menu .brx-submenu-toggle button { color: #6f7267; }

/* #4 specialist tiles: dark readable titles and hover text; shorter tiles on phones */
.rs-spec__title { color: #404040; }
.rs-spec__back, .rs-spec__back p { color: #404040; }
@media (max-width: 991px) { .rs-spec { min-height: 220px; } }

/* #7 phone menu: call and book at the bottom (markup from riverstone.php, placed by rs-ux.js) */
.rs-mm-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 30px 40px; border-top: 1px solid #eee; }
.rs-mm-extra__call { font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 700; color: #404040; text-decoration: none; padding-block: 8px; }
.rs-mm-extra__book.rs-btn { font-size: 14px; padding: 12px 18px; }

/* #8 contact form: small visible labels above the fields (placeholders stay) */
.rs-contact__form .fluentform .ff-el-form-hide_label > .ff-el-input--label {
  display: block !important; position: static !important; width: auto !important; height: auto !important; clip: auto !important;
  overflow: visible !important; margin: 0 0 4px !important; padding: 0 !important; opacity: 1 !important; visibility: visible !important; }
.rs-contact__form .fluentform .ff-el-input--label label { font-size: 14px; font-weight: 600; color: #404040; margin: 0; }

/* #15 shorter lines on desktop for the testimonial and the One-Stop Dental Shop intro */
.rs-quote p, .rs-shop__text { max-width: 70ch; margin-inline: auto; }

/* #16 hero video pause button (added by rs-ux.js) */
.rs-hero__pause { position: absolute; right: 20px; bottom: 20px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rs-hero__pause svg { width: 18px; height: 18px; fill: currentColor; }
.rs-hero__pause:hover { background: rgba(0,0,0,.75); }

/* #20 phones: one title band height on every page */
@media (max-width: 767px) {
  .rs-band .rs-wrap, .rs-band--svc .rs-wrap, .rs-band--tall .rs-wrap, .rs-hero-photo .rs-wrap {
    padding-block: 40px; min-height: 200px; display: flex; align-items: center; justify-content: center; }
}

/* Razib 2026-11-27: page-text buttons (WordPress button blocks, e.g. Scheduling "book online") match the site buttons */
.rs-content .wp-block-button__link, .rs-content .wp-block-button .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; font-family: Montserrat, sans-serif; font-size: 14px; font-weight: 500;
  line-height: 1.6; text-transform: uppercase; color: #fff; background-color: #a06865; border: 1px solid #a06865; border-radius: 6px;
  padding: 10px 20px; text-decoration: none; }
.rs-content .wp-block-button__link:hover, .rs-content .wp-block-button .wp-element-button:hover { background-color: #8e5a57; border-color: #8e5a57; color: #fff; box-shadow: 0 7px 10px 0 var(--rs-grey); }
@media (min-width: 1451px) { .rs-content .wp-block-button__link { font-size: 18px; } }

/* Razib 2026-11-27 (#4 on phones): no tap-to-reveal on small screens; each specialist box shows icon, title and its
   description stacked, sized to the text. Desktop keeps the hover reveal. Replaces the 220px cap above. */
@media (max-width: 991px) {
  .rs-spec { min-height: 0; padding: 40px 24px 44px; justify-content: flex-start; }
  .rs-spec__back { position: static; inset: auto; opacity: 1; background: none; padding: 10px 0 0; color: #404040; display: block; max-width: 34em; }
  .rs-spec__back p, .rs-spec__back { font-size: 16px; line-height: 1.6; color: #404040; }
  .rs-spec__title { margin-top: 16px; }
}

/* Razib 2026-11-27: team groups with a short last row (or one person) are centred. Same card widths and gaps as the
   grid (4 across, 3 for no-bio groups on tablets, 2 on tablets, 1 on phones). */
.rs-team-grid, .rs-team-grid:has(> .rs-card:only-child) { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: none; --cols: 4; }
.rs-team-grid > .rs-card { flex: 0 0 calc((100% - (var(--cols) - 1) * 20px) / var(--cols)); max-width: calc((100% - (var(--cols) - 1) * 20px) / var(--cols)); }
@media (max-width: 991px) { .rs-team-grid, .rs-team-grid:has(> .rs-card:only-child) { --cols: 2; } }
@media (min-width: 768px) and (max-width: 991px) { .rs-team-grid:not(:has(.rs-card__back)) { --cols: 3; } }
@media (max-width: 767px) { .rs-team-grid, .rs-team-grid:has(> .rs-card:only-child) { --cols: 1; } }

/* #1 SUBMIT: Fluent prints its own colours inline (form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit, hover white
   with blue text); match that selector and win, at rest and on hover/focus */
form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit, .rs-contact__form form.fluent_form_3 .ff-btn-submit { background-color: #a06865 !important; border-color: #a06865 !important; color: #fff !important; }
form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit:hover, form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit:focus-visible,
.rs-contact__form form.fluent_form_3 .ff-btn-submit:hover { background-color: #8e5a57 !important; border-color: #8e5a57 !important; color: #fff !important; opacity: 1 !important; }

/* #7 align with the menu links, keep the number on one line, let the button text fit */
.rs-mm-extra { padding: 24px 0 40px; }
.rs-mm-extra__call { white-space: nowrap; }
.rs-mm-extra__book.rs-btn { white-space: normal; text-align: center; max-width: 100%; }

/* #3 phone menu links: Bricks prints its colour with an element id; override */
.rs-header .bricks-mobile-menu > li > a, .rs-header .bricks-mobile-menu > li > .brx-submenu-toggle > a, .rs-header .bricks-mobile-menu .sub-menu a,
.rs-header .bricks-mobile-menu .brx-submenu-toggle button { color: #6f7267 !important; }

/* Razib 2026-11-27: footer map is a live Google map (same place and size as the old screenshot) + directions link */
.rs-map { position: relative; width: 100%; aspect-ratio: 442 / 353; background: #eaebdb; overflow: hidden; }
.rs-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rs-map__dir { margin: 12px 0 0; }
.rs-map__dir a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #222; text-decoration: underline; text-underline-offset: 3px; padding-block: 6px; }
.rs-map__dir a::before { content: ""; width: 14px; height: 14px; flex: none; background: url(/wp-content/uploads/2021/09/bullet-point-copy-10@1X.png) center/contain no-repeat; }
.rs-map__dir a:hover { color: var(--rs-grey); }

/* Razib 2026-11-27: contact page online booking note and buttons above the form */
.rs-contact__book { margin-top: 24px; }
.rs-contact__book p { margin: 0 0 12px; }
.rs-contact__book-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* Gravity Forms appointment form: left aligned text, full width submit like the site buttons */
.rs-contact__form .gform_wrapper { text-align: left; }
.rs-contact__form .gform_wrapper .gform_footer { justify-content: center; }
.rs-contact__form .gform_wrapper input[type=submit].gform_button { font-family: Montserrat, sans-serif; text-transform: uppercase; font-weight: 500; letter-spacing: .02em; min-width: 180px; }
.rs-contact__form .gform_wrapper .ginput_container_date.ginput_complex, .rs-contact__form .gform_wrapper .gfield--type-date .ginput_complex { display: flex; gap: 10px; flex-wrap: nowrap; }
.rs-contact__form .gform_wrapper .gfield--type-date .ginput_complex > * { flex: 1 1 0; min-width: 0; margin: 0; }
.rs-contact__form .gform_wrapper .gform_button:hover, .rs-contact__form .gform_wrapper .gform_button:focus-visible { background-color: #8e5a57 !important; border-color: #8e5a57 !important; color: #fff !important; }

/* Razib 2026-11-27: "Style the form nicely so it matches the vibe of their website" (Gravity Forms, Orbital theme) */
.rs-contact__form { margin-top: 36px; }
.rs-contact__form .gform_wrapper.gform-theme {
  --gf-ctrl-border-color: #dcd2ce; --gf-ctrl-border-color-hover: #c9bcb7; --gf-ctrl-border-color-focus: #a06865;
  --gf-ctrl-shadow: none; --gf-ctrl-outline-color-focus: rgba(160, 104, 101, .22); --gf-ctrl-label-color-req: #a06865;
  --gf-ctrl-size-lg: 52px; --gf-radius: 6px;
  background: #fff; border: 1px solid #efe4e0; border-radius: 12px; box-shadow: 0 14px 40px rgba(93, 96, 87, .08);
  padding: 34px 32px 30px; }
.rs-contact__form .gform_wrapper .gform_required_legend { font-size: 13px; color: #6f7267; margin-bottom: 18px; }
.rs-contact__form .gform_wrapper .gfield_label, .rs-contact__form .gform_wrapper legend.gfield_label {
  font-family: Quicksand, sans-serif; font-weight: 700; font-size: 16px; color: #5d6057; }
.rs-contact__form .gform_wrapper .gfield_required { color: #a06865; }
.rs-contact__form .gform_wrapper .gform-field-label--type-sub { font-size: 13px; color: #6f7267; }
.rs-contact__form .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]), .rs-contact__form .gform_wrapper select, .rs-contact__form .gform_wrapper textarea {
  font-family: "Open Sans", sans-serif; font-size: 16px; color: #222; background: #fff; }
.rs-contact__form .gform_wrapper input:focus, .rs-contact__form .gform_wrapper select:focus, .rs-contact__form .gform_wrapper textarea:focus {
  border-color: #a06865 !important; box-shadow: 0 0 0 3px rgba(160, 104, 101, .18) !important; outline: none !important; }
.rs-contact__form .gform_wrapper input[type=radio] { accent-color: #a06865; }
.rs-contact__form .gform_wrapper .gchoice label { font-size: 15px; color: #404040; }
.rs-contact__form .gform_wrapper .gfield--type-turnstile { display: flex; justify-content: center; }
.rs-contact__form .gform_wrapper .gform_footer { justify-content: center; margin-top: 8px; padding-top: 0; }
.rs-contact__form .gform_wrapper input[type=submit].gform_button {
  font-family: Montserrat, sans-serif; font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em;
  background-color: #a06865 !important; border: 1px solid #a06865 !important; color: #fff !important; border-radius: 6px; padding: 14px 40px; min-width: 220px; min-height: 52px; }
.rs-contact__form .gform_wrapper input[type=submit].gform_button:hover { background-color: #8e5a57 !important; box-shadow: 0 7px 10px 0 rgba(150, 153, 142, .7); }
.rs-contact__form .gform_wrapper .gform_validation_errors { border-radius: 8px; }
/* jQuery UI calendar in the site colours */
.gform-theme-datepicker.ui-datepicker, #ui-datepicker-div.gform-theme-datepicker { --gf-color-primary: #a06865; border-radius: 10px; }
@media (max-width: 767px) { .rs-contact__form .gform_wrapper.gform-theme { padding: 24px 18px 22px; border-radius: 10px; } }
.rs-contact__form .gform_wrapper .gform_footer .gform_button {
  font-family: Montserrat, sans-serif !important; font-size: 16px !important; font-weight: 500 !important; text-transform: uppercase !important; letter-spacing: .03em;
  background-color: #a06865 !important; border: 1px solid #a06865 !important; color: #fff !important; border-radius: 6px !important; padding: 14px 40px !important; min-width: 220px; min-height: 52px; }
.rs-contact__form .gform_wrapper .gform_footer .gform_button:hover { background-color: #8e5a57 !important; border-color: #8e5a57 !important; }
.rs-contact__form .gform_wrapper .gfield--type-date .ginput_container_date, .rs-contact__form .gform_wrapper .gfield--type-date .ginput_container_date input { width: 100%; max-width: none; }
.rs-contact__form .gform_wrapper .gfield_required, .rs-contact__form .gform_wrapper .gfield_required_asterisk { color: #a06865 !important; font-size: 15px; }
