/*
 * Rate converter presentation for the Crypto Ruda public landing.
 * Responsible for converter section layout, amount-input sizing, rate-strip presentation, swap control visuals, status text, and converter CTA styling.
 * Must not define exchange calculations, rates-provider behavior, dropdown JavaScript behavior, or form submission logic.
 * Important constraint: converter amount inputs share a flex row with the custom currency dropdown and must remain shrinkable on narrow screens.
 *
 * AI CONTEXT:
 * - The custom currency dropdown presentation lives in css/currency-dropdown.css and intentionally allows opened menus to overflow vertically.
 * - Keep .cr-converter-input min-width at 0 and width at 0 so intrinsic input width cannot push the currency control outside the wrapper.
 * - Keep converter business logic in js/rate-converter.js.
 * - The converter CTA must use the card's available width through a 100% border-box model; do not compensate with viewport-specific calc widths.
 */

/* Section: full-width, inherits page background */

#rec2814397301.cr-converter-section {
  background-color: #12001e;
  padding: 48px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Heading: page-level, not card title */

#rec2814397301 .cr-converter-title {
  color: #ececf9;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px 0;
  text-align: center;
}

#rec2814397301 .cr-converter-subtitle {
  color: #8f8998;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 15px;
  font-weight: 100;
  line-height: 1.35;
  margin: 0 0 24px 0;
  text-align: center;
}

/* Rate strip: quiet info row above calculator */

#rec2814397301 .cr-rate-strip {
  max-width: 960px;
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#rec2814397301 .cr-rate-strip-label {
  color: #8f8998;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#rec2814397301 .cr-rate-strip-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(30, 10, 50, 0.4);
  border: 1px solid rgba(127, 46, 255, 0.15);
  border-radius: 10px;
}

#rec2814397301 .cr-rate-strip-asset {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ececf9;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

#rec2814397301 .cr-rate-strip-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #b8b4c4;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

#rec2814397301 .cr-rate-strip-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#rec2814397301 .cr-rate-strip-dir {
  color: #8f8998;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

#rec2814397301 .cr-rate-strip-val {
  color: #ececf9;
  font-size: 14px;
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  #rec2814397301 .cr-rate-strip {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  #rec2814397301 .cr-rate-strip-label {
    display: none;
  }
  #rec2814397301 .cr-rate-strip-row {
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 280px;
  }
}

/* Crypto icons */

#rec2814397301 .cr-crypto-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

#rec2814397301 .cr-crypto-icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Calculator surface: subtle, wide */

#rec2814397301 .cr-converter-card {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(37, 37, 37, 0.2);
  border: 1px solid rgba(93, 93, 93, 0.2);
  border-radius: 12px;
  padding: 24px 20px;
}

/* Amount fields: the visual focus */

#rec2814397301 .cr-converter-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

#rec2814397301 .cr-converter-field {
  flex: 1;
  min-width: 0;
}

#rec2814397301 .cr-converter-field-label {
  display: block;
  color: #b8b4c4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

#rec2814397301 .cr-converter-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  background: rgba(18, 0, 30, 0.6);
  border: 1px solid #5d5d5d;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#rec2814397301 .cr-converter-input-wrap:focus-within {
  border-color: #7f2eff;
  box-shadow: 0 0 0 2px rgba(127, 46, 255, 0.3);
}

#rec2814397301 .cr-converter-input {
  flex: 1;
  min-width: 0;
  width: 0;
  min-height: 48px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  outline: none;
  color: #ececf9;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  -moz-appearance: textfield;
}

#rec2814397301 .cr-converter-input::-webkit-outer-spin-button,
#rec2814397301 .cr-converter-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#rec2814397301 .cr-converter-currency-select {
  padding: 8px 38px 8px 14px;
  background-color: rgba(30, 10, 50, 0.85);
  border: 1px solid rgba(161, 90, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #ececf9;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  outline: none;
  min-height: 48px;
  -webkit-appearance: none;
  -moz-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='none' stroke='%23a15aff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

#rec2814397301 .cr-converter-currency-select:hover {
  border-color: rgba(161, 90, 255, 0.5);
  background-color: rgba(40, 15, 65, 0.9);
}

#rec2814397301 .cr-converter-currency-select:focus {
  border-color: rgba(161, 90, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(127, 46, 255, 0.15);
}

#rec2814397301 .cr-converter-currency-select:disabled {
  opacity: 0.5;
  cursor: default;
  border-color: rgba(93, 93, 93, 0.2);
}

#rec2814397301 .cr-converter-currency-select option {
  background: #1a0a2e;
  color: #ececf9;
  padding: 8px;
}

/* Swap arrow between fields — clickable, swaps currencies */

#rec2814397301 .cr-converter-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding-top: 18px;
}

#rec2814397301 .cr-swap-icon {
  width: 28px;
  height: 28px;
  display: block;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out, transform 0.25s ease-in-out;
}

#rec2814397301 .cr-swap-icon:hover {
  opacity: 1;
}

#rec2814397301 .cr-swap-icon:active {
  transform: rotate(180deg);
}

@media screen and (min-width: 640px) {
  #rec2814397301 .cr-converter-fields {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Rate info + disclaimer + status: compact service group */

#rec2814397301 .cr-converter-rate-info {
  color: #b8b4c4;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 14px;
  font-weight: 100;
  margin-bottom: 3px;
}

#rec2814397301 .cr-converter-note {
  color: #8f8998;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 13px;
  font-weight: 100;
  line-height: 1.4;
  margin: 0 0 4px 0;
}

#rec2814397301 .cr-converter-status {
  font-family: 'Arial', Arial, sans-serif;
  font-size: 12px;
  font-weight: 100;
  margin-bottom: 16px;
}

#rec2814397301 .cr-converter-status-fresh {
  color: #8f8998;
}

#rec2814397301 .cr-converter-status-updating {
  color: #c9a227;
}

#rec2814397301 .cr-converter-status-error {
  color: #e05a5a;
}

/* CTA: strongest purple element, matching contact form submit */

#rec2814397301 .cr-converter-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 14px 20px;
  background: linear-gradient(0.199turn, rgba(127, 46, 255, 1) 0%, rgba(161, 90, 255, 1) 94%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out, transform 0.1s ease-in-out;
}

#rec2814397301 .cr-converter-cta:hover {
  opacity: 0.9;
}

#rec2814397301 .cr-converter-cta:active {
  transform: scale(0.98);
}

/* Mobile adjustments */

@media screen and (max-width: 480px) {
  #rec2814397301.cr-converter-section {
    padding: 36px 16px;
  }

  #rec2814397301 #cr-converter-cta {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  #rec2814397301 .cr-converter-title {
    font-size: 24px;
  }
  #rec2814397301 .cr-converter-card {
    padding: 18px 14px;
  }
  #rec2814397301 .cr-converter-input {
    font-size: 18px;
  }
  #rec2814397301 .cr-converter-currency-select {
    font-size: 15px;
    padding: 10px 36px 10px 12px;
    min-height: 52px;
    border-radius: 12px;
  }
}

/*
 * CAPTCHA preview placeholder styles.
 * Visual only — never generates a real reCAPTCHA token.
 */
.cr-captcha-preview {
  margin-bottom: 16px;
}

.cr-captcha-preview-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 302px;
  min-height: 78px;
  border: 1px solid #5d5d5d;
  border-radius: 4px;
  background: rgba(18, 0, 30, 0.6);
  padding: 8px 12px;
}

.cr-captcha-preview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
}

.cr-captcha-preview-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #5d5d5d;
  border-radius: 2px;
  display: inline-block;
}

.cr-captcha-preview-text {
  color: #ececf9;
  font-family: 'Arial', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.cr-captcha-preview-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cr-captcha-preview-logo {
  color: #8f8998;
  font-size: 11px;
  font-weight: 700;
}

.cr-captcha-preview-sub {
  color: #8f8998;
  font-size: 10px;
  font-weight: 100;
}