/* ===========================================================================
   GLORY MEDALS — QUICK CONTACT COMPONENT
   ---------------------------------------------------------------------------
   Owns the fixed right-side contact controls and their enquiry modal.
   Keep its responsive rules here so the component can be maintained without
   searching template files or the global style sheet.
   =========================================================================== */

/* --------------------------------------------------------------------------
   Fixed quick-contact controls
   -------------------------------------------------------------------------- */
.aside_right {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 1000;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .25s ease, transform .25s ease;
}

/* Kept intentionally visible when the footer enters the viewport. */
.aside_right.is-over-footer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.aside_right ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside_right li {
  position: relative;
  cursor: pointer;
  line-height: 1;
}

.aside_right li > a {
  box-sizing: border-box;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(245, 247, 250, .14);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(15, 17, 20, .20);
  color: var(--gm-dark-heading);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.aside_right iconify-icon {
  display: block;
  margin: 0 auto;
  color: currentColor;
  font-size: 21px;
}

.aside_right .aside_whatsapp > a {
  background: var(--gm-dark-surface);
}

.aside_right .aside_email > a {
  background: var(--gm-gold);
  color: var(--gm-dark-surface);
}

.aside_right .aside_quote > a,
.aside_right .aside_top > a {
  background: #292D33;
}

.aside_right li > a:hover,
.aside_right li > a:focus-visible {
  border-color: var(--gm-gold);
  background: var(--gm-gold);
  box-shadow: 0 10px 26px rgba(201, 150, 43, .32);
  color: var(--gm-dark-surface);
  outline: none;
  transform: translateY(-2px);
}

.aside_right li > a:focus-visible {
  outline: 3px solid var(--gm-gold);
  outline-offset: 3px;
}

/* Tooltip content is hidden until the matching contact item is focused or
   hovered. The right tool bar remains visible at all times. */
.side_tel_box,
.side_qr_box {
  position: absolute;
  right: calc(100% + 12px);
  z-index: 2;
  border: 1px solid rgba(201, 150, 43, .48);
  background: var(--gm-dark-surface);
  box-shadow: 0 10px 26px rgba(15, 17, 20, .28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.side_tel_box {
  top: 50%;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 86px);
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 13px;
  border-radius: 10px;
  transform: translate(8px, -50%);
}

.side_qr_box {
  top: 50%;
  display: flex;
  width: 120px;
  height: 120px;
  align-items: center;
  justify-content: center;
  transform: translate(8px, -50%);
}

.side_qr_box img {
  width: 90%;
  height: 90%;
}

.side_tel_box .side_tooltip_label {
  color: var(--gm-gold);
  font-family: var(--gm-font-heading);
  font-size: 13px;
  font-weight: var(--gm-weight-heading);
  letter-spacing: .06em;
  line-height: 18px;
  text-transform: uppercase;
}

.side_tel_box a,
.side_tel_box h6 a {
  padding: 0;
  color: var(--gm-dark-heading);
  font-family: var(--gm-font-body);
  font-size: 14px;
  font-weight: var(--gm-weight-heading);
  line-height: 21px;
}

.side_tel_box a:hover,
.side_tel_box a:focus-visible {
  color: var(--gm-gold);
}

.aside_right li:hover .side_tel_box,
.aside_right li:focus-within .side_tel_box,
.aside_right li:hover .side_qr_box,
.aside_right li:focus-within .side_qr_box {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

/* --------------------------------------------------------------------------
   Enquiry modal and WPForms form #102
   -------------------------------------------------------------------------- */
#aside_mask_bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 20, .68);
  backdrop-filter: blur(3px);
}

#aside_sc_from {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  display: none;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 46px 38px;
  overflow: auto;
  border: 1px solid rgba(201, 150, 43, .35);
  border-radius: 16px;
  background: var(--gm-light-card);
  box-shadow: 0 24px 70px rgba(15, 17, 20, .36);
  transform: translate(-50%, -50%);
}

#aside_sc_from .tit {
  margin-bottom: 28px;
}

#aside_sc_from .tit h6 {
  margin: 0;
  color: var(--gm-light-heading);
  font-family: var(--gm-font-heading);
  font-size: 26px;
  font-weight: var(--gm-weight-heading);
  line-height: 35px;
  text-align: center;
  text-transform: capitalize;
}

#aside_sc_from .close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: block;
  width: 30px;
  height: 30px;
  background: url("../images/close_1_hei.svg") no-repeat center;
  background-size: contain;
  transition: transform .25s ease;
}

#aside_sc_from .close:hover,
#aside_sc_from .close:focus-visible {
  transform: rotate(180deg);
}

#wpforms-102 {
  --input_font_size: 16px;
  --input_height: 42px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  color: var(--gm-light-copy);
  font-family: var(--gm-font-body);
  font-size: var(--input_font_size);
}

#wpforms-form-102 {
  width: 100%;
  overflow: hidden;
}

#wpforms-102 .wpforms-field {
  position: relative;
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0 0 20px;
  background: transparent;
}

#wpforms-102 .wpforms-error-container {
  line-height: 16px;
}

#wpforms-102 .wpforms-field-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  overflow: hidden;
}

#wpforms-102 .wpforms-field-label {
  color: var(--gm-light-copy);
  font-family: var(--gm-font-body);
  font-size: 14px;
  font-weight: var(--gm-weight-regular);
  line-height: 21px;
}

#wpforms-102 .wpforms-error {
  margin-top: .01rem;
  font-size: 12px !important;
}

#wpforms-102 .wpforms-field:nth-child(1),
#wpforms-102 .wpforms-field:nth-child(2) {
  width: calc(50% - 10px);
}

#wpforms-102 input {
  height: var(--input_height);
}

#wpforms-102 textarea {
  min-height: 100px;
}

#wpforms-102 input,
#wpforms-102 textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100% !important;
  padding: 0 10px;
  border: 1px solid var(--gm-light-border);
  border-radius: 4px;
  outline: none;
  background-color: var(--gm-light-card);
  box-shadow: none !important;
  color: var(--gm-light-heading);
  font-family: var(--gm-font-body);
  font-size: var(--input_font_size);
  line-height: var(--input_height);
}

#wpforms-102 textarea {
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 25px;
}

#wpforms-102 input:focus,
#wpforms-102 textarea:focus {
  border-color: var(--gm-gold);
  box-shadow: 0 0 0 3px rgba(201, 150, 43, .18) !important;
}

#wpforms-102 input::placeholder,
#wpforms-102 textarea::placeholder {
  color: rgba(94, 102, 112, .68);
  font-size: var(--input_font_size);
}

#wpforms-102 #wpforms-102-field_1-error,
#wpforms-102 #wpforms-102-field_2-error,
#wpforms-102 #wpforms-102-field_3-error,
#wpforms-102 #wpforms-102-field_4-error {
  position: absolute;
  font-size: 14px;
}

#wpforms-102 .wpforms-submit-container {
  display: flex;
  justify-content: center;
}

#wpforms-102 .wpforms-submit-container button {
  position: relative;
  margin: 0;
}

#wpforms-102 .wpforms-submit-container img {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   Responsive component rules
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  .aside_right {
    right: 16px;
    bottom: 22px;
  }
}

@media screen and (max-width: 959px) {
  .aside_right {
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .aside_right ul {
    gap: 8px;
  }

  #aside_sc_from {
    width: calc(100% - 30px);
    padding: 38px 24px 30px;
  }
}

@media screen and (max-width: 560px) {
  #aside_sc_from {
    padding: 34px 20px 24px;
  }

  #aside_sc_from .tit {
    margin-bottom: 20px;
  }

  #aside_sc_from .tit h6 {
    font-size: 22px;
    line-height: 30px;
  }

  #wpforms-102 {
    --input_font_size: 14px;
    --input_height: 40px;
  }

  #wpforms-102 .wpforms-field:nth-child(1),
  #wpforms-102 .wpforms-field:nth-child(2) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aside_right,
  .aside_right li > a,
  .side_tel_box,
  .side_qr_box,
  #aside_sc_from .close {
    transition: none;
  }
}
