/* ==========================================================
   Registration Form Styles — Premium Redesign
   ========================================================== */

/* ======================================================
   STICKY REGISTRATION HEADER
   ====================================================== */

.reg-sticky-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 200;
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(200, 155, 60, 0.2);
  box-shadow: 0 2px 20px rgba(43, 24, 16, 0.07);
}

/* Top row: logo + info + back btn */
.reg-header-top {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(200, 155, 60, 0.12);
}

.reg-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.reg-logo img {
  display: block;
}

.reg-header-divider {
  width: 1px;
  height: 40px;
  background: rgba(200, 155, 60, 0.3);
  flex-shrink: 0;
}

.reg-header-info {
  flex: 1;
}

.reg-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.2;
}

.reg-header-sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 0.1rem 0 0 0;
  line-height: 1.4;
}

.reg-page-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(200, 155, 60, 0.25);
}

.reg-page-icon i {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.reg-back-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid rgba(200, 155, 60, 0.3);
  border-radius: 50px;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.reg-back-btn:hover {
  background: rgba(200, 155, 60, 0.08);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
}

.reg-back-btn i {
  font-size: 0.95rem;
}

/* Steps bar row */
.reg-steps-bar {
  padding: 0.7rem 0;
}

.reg-steps-bar .reg-header-inner {
  justify-content: center;
  gap: 0;
}



/* ---- Page Layout ---- */
.form-section {
  position: relative;
  padding: 2.5rem 0 5rem 0;
  min-height: 100vh;
  background-color: var(--color-body);
}

.form-container {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Page Title Bar ---- */
.form-page-header {
  padding-top: 120px;
  padding-bottom: 2rem;
  background-color: var(--color-body);
  border-bottom: 1px solid rgba(200, 155, 60, 0.2);
  margin-bottom: 0;
}

.form-page-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.form-page-header .page-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(200, 155, 60, 0.3);
}

.form-page-header .page-icon i {
  font-size: 1.75rem;
  color: var(--color-primary-dark);
}

.form-page-header h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
}

.form-page-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---- Breadcrumb ---- */
.form-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.form-breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.form-breadcrumb i {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* ---- Steps Progress ---- */
.form-steps-bar {
  background: var(--color-white);
  border-bottom: 1px solid rgba(200, 155, 60, 0.15);
  padding: 1rem 0;
  position: sticky;
  top: 72px;
  z-index: 50;
}

.form-steps-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.step-item .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid rgba(200, 155, 60, 0.3);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item .step-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.step-item.active .step-num {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(200, 155, 60, 0.35);
  transform: scale(1.1);
}

.step-item.active .step-label {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* Completed steps */
.step-item.done .step-num {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-accent);
  font-size: 0;
  position: relative;
}

.step-item.done .step-num::after {
  content: '\2713';
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--color-accent);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item.done .step-label {
  color: var(--color-primary-dark);
}

.step-connector {
  width: 40px;
  height: 2px;
  background: rgba(200, 155, 60, 0.2);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
  transition: background 0.4s ease;
}

/* Connector between done steps becomes golden */
.step-item.done + .step-connector {
  background: var(--color-accent);
}


/* ---- Card Design ---- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  border: 1px solid rgba(200, 155, 60, 0.25);
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(43, 24, 16, 0.05);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(200,155,60,0.3) 100%);
}

.form-card:hover {
  box-shadow: 0 8px 32px rgba(200, 155, 60, 0.1);
}

/* ---- Step Title ---- */
.form-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(200, 155, 60, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-step-title i {
  color: var(--color-accent);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ---- Form Group ---- */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

/* ---- Inputs ---- */
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(200, 155, 60, 0.22);
  border-radius: var(--radius-md);
  background-color: rgba(252, 249, 242, 0.6);
  color: var(--color-primary-dark);
  font-family: inherit;
  font-size: 0.97rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(43, 24, 16, 0.3);
  font-size: 0.88rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.1);
}

.form-control:hover:not(:focus) {
  border-color: rgba(200, 155, 60, 0.45);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232B1810' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

/* ---- Two-column grid ---- */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ---- Radio Cards ---- */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border: 1.5px solid rgba(200, 155, 60, 0.22);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(252, 249, 242, 0.5);
  text-align: center;
  gap: 0.5rem;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card .icon {
  font-size: 2.1rem;
  color: rgba(43, 24, 16, 0.35);
  transition: all 0.3s ease;
}

.radio-card .title {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.92rem;
}

.radio-card:hover {
  border-color: var(--color-accent);
  background: rgba(200, 155, 60, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(200, 155, 60, 0.1);
}

.radio-card:hover .icon {
  color: var(--color-accent);
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: var(--color-accent);
  background: rgba(200, 155, 60, 0.07);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.15);
}

.radio-card:has(input[type="radio"]:checked) .icon {
  color: var(--color-primary-dark);
}

/* ---- Checkboxes ---- */
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(200, 155, 60, 0.15);
  background: rgba(200, 155, 60, 0.02);
  transition: all 0.3s ease;
}

.checkbox-item:hover {
  background: rgba(200, 155, 60, 0.06);
  border-color: rgba(200, 155, 60, 0.35);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary-dark);
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item label {
  cursor: pointer;
  color: var(--color-primary-dark);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 500;
}

/* ---- File Upload ---- */
.file-upload-wrapper {
  position: relative;
  width: 100%;
  min-height: 120px;
  border: 2px dashed rgba(200, 155, 60, 0.35);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(252, 249, 242, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.file-upload-wrapper:hover {
  border-color: var(--color-accent);
  background: rgba(200, 155, 60, 0.04);
  box-shadow: 0 3px 12px rgba(200, 155, 60, 0.1);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  text-align: center;
  pointer-events: none;
  padding: 1rem;
}

.file-upload-content i {
  font-size: 2rem;
  color: var(--color-primary-dark);
  opacity: 0.4;
  display: block;
  margin-bottom: 0.4rem;
}

.file-upload-content span {
  display: block;
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.85rem;
}

.file-name-display {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 0.3rem;
}

/* ---- Info Box ---- */
.form-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: rgba(200, 155, 60, 0.05);
  border: 1px solid rgba(200, 155, 60, 0.18);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.form-info-box i {
  color: var(--color-accent);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-info-box p {
  font-size: 0.87rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---- Submit Area ---- */
.form-submit-wrapper {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* ---- Responsive ---- */

/* Tablet & small screens */
@media (max-width: 768px) {

  /* Compact sticky header */
  .reg-header-top {
    padding: 0.6rem 0;
  }

  .reg-header-inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .reg-logo img {
    height: 32px !important;
  }

  .reg-header-divider {
    display: none;
  }

  .reg-header-info {
    flex: 1;
    min-width: 0;
  }

  .reg-header-title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .reg-header-sub {
    display: none;
  }

  .reg-back-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  /* Steps bar */
  .reg-steps-bar {
    padding: 0.5rem 0;
  }

  .step-connector {
    width: 20px;
  }

  .step-item .step-label {
    display: none;
  }

  .step-item .step-num {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  /* Form layout */
  .form-section {
    padding: 2rem 0 4rem 0;
  }

  .form-container {
    padding: 0 1rem;
  }

  .form-card {
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
  }

  .form-step-title {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  /* 2-col → 1 col */
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Radio group: 2 per row on mobile */
  .radio-group {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .radio-card {
    padding: 1rem 0.5rem;
  }

  .radio-card .icon {
    font-size: 1.6rem;
  }

  .radio-card .title {
    font-size: 0.78rem;
  }

  /* File upload smaller */
  .file-upload-wrapper {
    min-height: 90px;
  }

  /* Checkboxes */
  .checkbox-item {
    padding: 0.75rem 0.85rem;
  }

  .checkbox-item label {
    font-size: 0.85rem;
  }

  /* Submit button: full width */
  .form-submit-wrapper .btn {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
  }
}

/* Extra small (iPhone SE & similar) */
@media (max-width: 375px) {

  .radio-group {
    grid-template-columns: 1fr;
  }

  .step-connector {
    width: 10px;
  }

  .form-card {
    padding: 1rem 0.85rem;
  }
}

@media (max-width: 640px) {
  .form-steps-bar .container {
    gap: 0;
  }
}
