/* =====================================
   IBOSSIM – Partner With Us form layout
   (Clone of apply.css with minor additions)
   ===================================== */

/* ---- Global ---- */

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

.apply-body {
  min-height: 100vh;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card container */
.apply-shell {
  width: 100%;
  max-width: 600px;
  padding: 4rem 3rem;
}

.apply-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;

  background: radial-gradient(circle at 30% 50%, #171717 0, #050505 40%, #000 100%);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

.apply-card,
.apply-card * {
  box-sizing: border-box;
}

/* ---- Header: logo + wordmark + step label ---- */

:root {
  --apply-logo-max-width: 260px;
  --apply-wordmark-width: 180px;
}

/* Top header block (centered) */
.apply-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
}

/* Main logo */
.apply-logo img {
  max-width: var(--apply-logo-max-width);
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
}

/* Wordmark (NEW for Partner form) */
.apply-wordmark img {
  max-width: var(--apply-wordmark-width);
  width: 100%;
  opacity: 0.9;
  display: block;
  margin: 0.5rem auto 1.75rem;
}

/* Step indicator */
.apply-step-indicator {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0 auto 2.75rem;
}

/* ---- Steps ---- */

.apply-step {
  display: none;
  padding: 0 2.5rem 3.5rem;
}

.apply-step.is-active {
  display: block;
}

/* Centered intro step */
.apply-step[data-step="1"] {
  text-align: center;
}

.apply-title {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.apply-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 auto 1.25rem;
}

.apply-meta {
  margin-top: 2.25rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---- Buttons ---- */

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.8rem 2.8rem;
  border-radius: 999px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;

  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  cursor: pointer;
  transition: 0.25s ease;
}

.apply-btn-primary:hover,
.apply-btn-primary:focus-visible {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

.apply-btn-secondary {
  border-color: #333;
  color: #ccc;
}

.apply-btn-secondary:hover,
.apply-btn-secondary:focus-visible {
  background-color: #333;
  color: #fff;
  transform: translateY(-1px);
}

/* First step button centering */
.apply-step[data-step="1"] .apply-btn-primary {
  margin: 0 auto;
}

/* ---- Field structure ---- */

.apply-step-title {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.apply-required {
  color: #f36;
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

.apply-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 36rem;
}

.apply-field {
  display: flex;
  flex-direction: column;
}

.apply-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Textarea */
.apply-textarea {
  border-radius: 18px;
  min-height: 140px;
  padding: 1rem;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  resize: vertical;
}

.apply-textarea:focus {
  border-color: #fff;
  outline: none;
}

/* Helper copy */
.apply-helper {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0 0 1.25rem;
}

/* ---- Options (radio + checkbox) ---- */

.apply-options {
  display: grid;
  gap: 1rem;
}

.apply-options--stack {
  grid-template-columns: 1fr;
}

.apply-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.apply-option input {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.apply-option-label {
  font-size: 0.95rem;
  cursor: pointer;
}

/* ---- Navigation buttons ---- */

.apply-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ---- File input ---- */

input[type="file"] {
  color: #fff;
  background: transparent;
  padding: 0.5rem 0;
}

input[type="file"]::-webkit-file-upload-button {
  background: #222;
  border: 1px solid #555;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  color: #fff;
  cursor: pointer;
  transition: 0.25s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background: #fff;
  color: #000;
}

/* ---- Phone country code selector (matches phone input height) ---- */
.phone-wrapper{
  display: flex;
  gap: 12px;
  align-items: stretch; /* key: makes both controls same height */
}

select[name="country_code"].phone-prefix,
.phone-prefix{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background: transparent;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;

  padding: 0 1rem;      /* no vertical padding */
  height: 56px;         /* set a real height */
  line-height: 56px;    /* keeps text vertically centered */
  box-sizing: border-box;

  min-width: 140px;     /* adjust to taste */
}

.phone-input{
  height: 56px;         /* same as select */
  line-height: 56px;
  box-sizing: border-box;
}

select[name="country_code"].phone-prefix:focus,
.phone-prefix:focus,
.phone-input:focus{
  border-color: #fff;
  outline: none;
}

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

@media (max-width: 768px) {
  .apply-shell {
    padding: 2.5rem 1.5rem;
  }

  .apply-card {
    border-radius: 32px;
  }

  .apply-header {
    padding: 2.5rem 1.5rem 2rem;
  }

  .apply-logo img {
    max-width: 80%;
    margin-bottom: 1.5rem;
  }

  .apply-wordmark img {
    max-width: 60%;
    margin-bottom: 1.5rem;
  }

  .apply-step {
    padding: 0 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .apply-shell {
    padding: 2rem 1rem;
  }

  .apply-card {
    border-radius: 24px;
  }

  .apply-title {
    font-size: 1.4rem;
    letter-spacing: 0.16em;
  }

  .apply-intro {
    font-size: 0.9rem;
  }

  .apply-btn {
    width: 100%;
  }
}

.phone-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.phone-code {
  width: 120px;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
}

.phone-code:focus {
  border-color: #fff;
  outline: none;
}

.phone-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
}

.phone-input:focus {
  border-color: #fff;
  outline: none;
}

.apply-nav-center {
  justify-content: center !important;
}