* {
  box-sizing: border-box;
  text-decoration: none;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  height: 100vh;
  padding: 60px;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  overflow: hidden;
}


.main-container {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #282828;
  border-radius: 40px;
  overflow: hidden;
}

.background-img {
  width: 100%;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.form-section {
  max-width: 25vw;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.form-wrapper {
  background-color: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  gap: 30px;
}

h1 {
  font-size: 36px;
  line-height: 1.3;
  margin: 0 0 20px;
}

.section-label {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
  margin-top: 20px;
}
.section-label2 {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 35px;
  margin-top: 0;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #D9D9D9;
}

.dot.active {
  background-color: #1791a3;
}

.line {
  height: 2px;
  width: 7vh;
  background-color: #ccc;
}

.line.active{
  background-color: #1791a3;
}

form {
  display: flex;
  flex-direction: column;
  color: white;
  gap: 20px;
}

form > * {
  flex-grow: 0;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  background-color: #5C5C5C;
  color: white;
}

input::placeholder {
  color: #ffffff;
  opacity: 1;
}

.name-fields {
  display: flex;
  gap: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  background-color: #5C5C5C;
  color: white;
  font-size: 14px;
}

.password-field {
  position: relative;
}

.password-field .eye-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

button {
  background-color: #1F6F79;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #18565f;
}

.login-text {
  font-size: 14px;
  color: #ffffff;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-text a {
  color: #1791a3;
  text-decoration: none;
}

.image-section {
  flex: 1;
  padding: 30px;
  padding-left: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; 
}

.form-header {
  text-align: center;
}

select.country-select {
  width: 100%;
  padding: 14px 20px;
  border-radius: 20px;
  border: none;
  background-color: #5C5C5C;
  color: white;
  font-size: 14px;
  appearance: none;
}

select.country-select:focus {
  outline: 5px auto -webkit-focus-ring-color; 
}

.form-multistep {
  width: 100%;
  width: auto;
}

.form-section {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Stack both steps */
.form-step {
  width: 100%;
}

/* Show/hide using opacity or display */
#step-1 {
  display: block;
  z-index: 2;
}
#step-2 {
  display: none;
  z-index: 1;
}

.name-fields,
.address-fields,
.city-fields,
.state-fields {
  display: flex;
  gap: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select.country-select {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  border: none;
  background-color: #5C5C5C;
  color: white;
  font-size: 14px;
}

.terms-box {
  height: 300px;
  overflow-y: auto;
  overflow-x: hidden;              /* Prevent side bleed */
  background-color: #5C5C5C;
  padding: 20px;
  border-radius: 30px;
  color: white;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
  scrollbar-gutter: stable;
  isolation: isolate;              /* Helps clip rounded edges */
}

.terms-box::-webkit-scrollbar {
  width: 8px;
}

.terms-box::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 30px;
}

.terms-box::-webkit-scrollbar-thumb {
  background-color: #4d4d4d;
  border-radius: 30px;
  border: 2px solid transparent; /* This pushes it inward */
  background-clip: content-box;
}

.terms-content {
  padding: 0 5px;
}

.button-link {
  display: inline-block;
  text-align: center;
  padding: 14px 28px;
  border-radius: 50px;
  background-color: #1F6F79;
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.button-link:hover {
  background-color: #18565f;
}