/* RingRegister Design System */

/* ── Fonts (self-hosted) ── */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/fonts/libre-franklin-300.ttf) format('truetype');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/libre-franklin-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/libre-franklin-700.ttf) format('truetype');
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { touch-action: manipulation; }
a, button, summary, [role="button"], input, select, textarea { -webkit-tap-highlight-color: transparent; }

:root {
  --lf-primary: #4EBBE4;
  --lf-primary-dark: #16a2d7;
  --lf-primary-darker: #008eef;
  --lf-nav-bg: #485056;
  --lf-nav-active: #555;
  --lf-gray: #C0C0C0;
  --lf-text: #333;
  --lf-text-gray: #86969C;
  --lf-text-light: #BCD2DA;
  --lf-bg: #f2f2f2;
  --lf-bg-white: #FCFDFD;
  --lf-border: #ddd;
  --lf-green: #b1e629;
  --lf-font: 'Libre Franklin', sans-serif;
  --lf-radius: 3px;
}

html {
  font-family: var(--lf-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--lf-text);
}

body {
  background: var(--lf-bg);
  overflow-x: hidden;
}

input, select, textarea {
  max-width: 100%;
}

a { color: var(--lf-primary); text-decoration: none; }
a:hover { color: var(--lf-primary-dark); }

h1, h2, h3, h4 { font-weight: 300; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }
hr { border: none; border-top: 1px solid var(--lf-border); margin: 1.5rem 0; }

/* ── Global Form Elements ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input:not([type]),
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  font-family: var(--lf-font);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--lf-text);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--lf-primary);
  box-shadow: 0 0 0 2px rgba(78, 187, 228, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  appearance: auto;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--lf-text-gray);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

/* ── Global Buttons ── */
button,
.rr-btn,
input[type="submit"],
a[role="button"] {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 2px;
  text-transform: uppercase;
  font-family: var(--lf-font);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  background: var(--lf-nav-bg);
  color: #fff;
}

button:hover,
.rr-btn:hover,
input[type="submit"]:hover,
a[role="button"]:hover {
  background: var(--lf-nav-active);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rr-btn-primary,
button.rr-btn-primary {
  background: var(--lf-primary);
}

.rr-btn-primary:hover,
button.rr-btn-primary:hover {
  background: var(--lf-primary-dark);
}

button.outline,
.rr-btn-outline {
  background: transparent;
  border: 1px solid var(--lf-border);
  color: var(--lf-text-gray);
}

button.outline:hover,
.rr-btn-outline:hover {
  border-color: var(--lf-primary);
  color: var(--lf-primary);
  background: transparent;
  box-shadow: none;
}

/* ── Navigation ── */
nav.rr-nav {
  background: var(--lf-nav-bg);
}

nav.rr-nav .rr-nav-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 5px 10px;
}

nav.rr-nav a {
  padding: 10px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

nav.rr-nav a:hover,
nav.rr-nav a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--lf-primary);
  color: #fff;
}

/* ── Header ── */
.rr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 15px;
}

.rr-header-logo {
  height: 40px;
  width: auto;
  display: block;
}

.rr-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rr-header-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--lf-text-gray);
  font-size: 0.85rem;
  text-decoration: none;
}

.rr-header-user:hover {
  color: var(--lf-primary);
}

/* ── Main Content ── */
main.rr-main {
  background: var(--lf-bg-white);
  min-height: 60vh;
}

.rr-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

/* ── Wizard Tabs ── */
.rr-wizard {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border-bottom: 1px solid var(--lf-gray);
}

.rr-wizard li {
  padding: 12px 24px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  color: var(--lf-text-gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.rr-wizard li.active {
  color: var(--lf-primary);
  border-bottom-color: var(--lf-primary);
}

.rr-wizard li.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Pricing Banner ── */
.rr-pricing {
  color: var(--lf-primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.rr-pricing .strike {
  text-decoration: line-through;
  margin-right: 4px;
}

.rr-pricing .price {
  font-weight: 700;
}

/* ── Page Title ── */
h1.rr-title {
  color: var(--lf-primary);
  font-weight: 300;
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

/* ── Form Row (label-left layout) ── */
.rr-form-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.rr-form-row label.rr-label {
  width: 180px;
  min-width: 180px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  color: var(--lf-text-gray);
  padding-top: 10px;
  margin-bottom: 0;
}

.rr-form-row .rr-field {
  flex: 1;
}

/* ── Fieldset Group (inline input + button) ── */
fieldset[role="group"] {
  display: flex;
  gap: 0;
}

fieldset[role="group"] input {
  border-radius: var(--lf-radius) 0 0 var(--lf-radius);
  border-right: none;
}

fieldset[role="group"] button {
  border-radius: 0 var(--lf-radius) var(--lf-radius) 0;
  white-space: nowrap;
}

/* ── Two Column Grid ── */
.rr-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ── Cards ── */
.rr-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--lf-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

article {
  margin-bottom: 1.5rem;
}

/* ── Centered Prompt ── */
.rr-prompt {
  text-align: center;
  padding: 3rem 1rem;
}

.rr-prompt .icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.rr-prompt h2 {
  color: var(--lf-primary);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.rr-prompt p {
  color: var(--lf-text-gray);
}

/* ── Item Grid ── */
.rr-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: var(--lf-radius);
  margin-bottom: 0.5rem;
  background: #fff;
}

.rr-item-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--lf-radius);
}

.rr-item-placeholder {
  width: 80px;
  height: 80px;
  background: #eee;
  border-radius: var(--lf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lf-text-gray);
  font-size: 0.7rem;
}

.rr-item-body {
  flex: 1;
}

.rr-item-actions {
  display: flex;
  gap: 0.5rem;
}

/* ── Details / Accordion (content only, not nav) ── */
main details {
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  content-visibility: auto;
}

main details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--lf-text-gray);
  list-style: none;
  padding: 0.25rem 0 0.75rem;
  border-bottom: 1px solid transparent;
  margin-bottom: 0;
  transition: border-color 0.15s ease, margin-bottom 0.15s ease;
}

main details summary::marker,
main details summary::-webkit-details-marker {
  display: none;
}

main details[open] summary {
  margin-bottom: 1rem;
  border-bottom-color: var(--lf-border);
}

/* ── Testimonial ── */
.rr-testimonial {
  background: var(--lf-bg-white);
  border-top: 1px solid var(--lf-border);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.rr-testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
}

.rr-testimonial-quote {
  border-left: 3px solid var(--lf-primary);
  padding-left: 1rem;
  margin: 0 0 1rem 0;
  font-style: italic;
  color: var(--lf-text);
}

.rr-stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
  color: var(--lf-green);
  font-size: 1.2rem;
}

.rr-testimonial-author {
  color: var(--lf-text-gray);
  font-size: 0.85rem;
}

/* ── Footer ── */
.rr-footer-bar {
  background: var(--lf-nav-bg);
  color: #fff;
  padding: 1.5rem;
}

.rr-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.rr-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.rr-footer-links a {
  color: var(--lf-text-light);
}

.rr-footer-links a:hover {
  color: #fff;
}

.rr-footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.rr-footer-social a {
  color: #fff;
  font-size: 1.5rem;
}

.rr-footer-social a:hover {
  color: var(--lf-primary);
}

.rr-footer-top {
  font-size: 0.85rem;
}

.rr-footer-top a {
  color: var(--lf-text-light);
}

.rr-footer-top a:hover {
  color: #fff;
}

.rr-footer-copy {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--lf-text-gray);
}

/* ── Dropzone override ── */
[id$="-zone"] {
  border-color: var(--lf-border) !important;
  background: #fafafa;
}

[id$="-zone"]:hover {
  border-color: var(--lf-primary) !important;
}

[id$="-zone"] p {
  color: var(--lf-text-gray);
  margin: 0;
}

/* ── Slideshow ── */
.rr-slideshow {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.rr-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.rr-slide.active {
  opacity: 1;
}

.rr-slideshow-contain {
  height: 300px;
}

.rr-slideshow-contain .rr-slide {
  background-size: cover;
  background-position: center 30%;
}

.rr-slide-text {
  position: absolute;
  bottom: 40px;
  left: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rr-slide-main {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  padding: 8px 16px;
  display: inline-block;
  margin-bottom: 4px;
}

.rr-slide-sub {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 6px 16px;
  display: inline-block;
}

/* ── Homepage Hero Grid ── */
.rr-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.rr-hero-col {
  text-align: center;
}

.rr-hero-col h2 {
  margin-bottom: 0.5rem;
}

.rr-hero-col h2 a {
  color: var(--lf-primary);
  font-weight: 700;
  font-size: 1.4rem;
}

.rr-hero-col h2 a:hover {
  color: var(--lf-primary-dark);
}

.rr-hero-col p {
  color: var(--lf-text-gray);
  font-size: 0.9rem;
  min-height: 3rem;
}

.rr-hero-search {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
}

.rr-hero-search input {
  border-radius: var(--lf-radius) 0 0 var(--lf-radius);
  flex: 1;
}

.rr-hero-search .rr-btn-go {
  border-radius: 0 var(--lf-radius) var(--lf-radius) 0;
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

.rr-hero-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--lf-radius);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .rr-grid-2,
  .rr-grid-3 {
    grid-template-columns: 1fr;
  }
  nav.rr-nav .rr-nav-inner {
    flex-wrap: wrap;
  }
  .rr-slideshow {
    height: 250px;
  }
  .rr-slide-main {
    font-size: 1.2rem;
  }
}

@media (max-width: 550px) {
  .rr-form-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  .rr-form-row label.rr-label {
    width: auto;
    min-width: auto;
    padding-top: 0;
  }
  .rr-form-row .rr-field {
    width: 100%;
  }
  .rr-wizard {
    flex-wrap: wrap;
  }
}

/* Auth forms */
.rr-auth-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 700px;
  margin: 1rem auto;
}
.rr-auth-section h3 {
  margin-bottom: 0.75rem;
}
.rr-auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.rr-auth-divider::before,
.rr-auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--lf-gray);
}
.rr-auth-divider span {
  color: var(--lf-text-gray);
  font-size: 0.85rem;
}
.rr-auth-error {
  background: #fce4e4;
  color: #c00;
  border: 1px solid #e0b0b0;
  border-radius: var(--lf-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.rr-profile {
  margin: 1rem 0;
}
.rr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
/* Nav user icon */
.rr-nav-user {
  display: inline-flex;
  align-items: center;
  padding: 4px;
}
.rr-nav-user svg {
  vertical-align: middle;
}

/* Profile form */
.rr-profile-saved {
  color: #080;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .rr-auth-forms {
    grid-template-columns: 1fr;
  }
  .rr-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile nav: hamburger menu */
.rr-nav-mobile {
  display: none;
}
@media (max-width: 630px) {
  nav.rr-nav {
    display: none;
  }
  .rr-nav-mobile {
    display: block;
  }
  .rr-nav-hamburger {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--lf-text-gray);
    cursor: pointer;
    list-style: none;
  }
  .rr-nav-hamburger::-webkit-details-marker {
    display: none;
  }
  .rr-nav-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(72, 80, 86, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: navFadeIn 0.25s ease-out;
  }
  @keyframes navFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .rr-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
    cursor: pointer;
    padding: 8px;
  }
  .rr-nav-close:hover {
    color: var(--lf-primary);
  }
  .rr-nav-dropdown a {
    display: block;
    padding: 14px 24px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.09em;
    text-align: center;
  }
  .rr-nav-dropdown a:hover {
    color: var(--lf-primary);
  }
  .rr-body {
    padding: 12px 12px 30px;
  }
  .rr-form-row .rr-field input,
  .rr-form-row .rr-field select,
  .rr-form-row .rr-field textarea {
    width: 100%;
  }
  .rr-header {
    padding: 0.5rem 12px;
  }
  h1 {
    font-size: 1.5rem;
  }
}
