/* ==========================================================================
   NUTANIX LEAD REGISTRATION FORM & MODAL POPUP STYLES
   Matches Exact Nutanix Purple Pill UI / Zero External Dependencies
   ========================================================================== */

/* --- 1. Form Card (Hero Right Column) --- */
.hero-form-card {
  background: #ffffff;
  border-top: 4px solid #7855fa;
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #111827;
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  box-sizing: border-box;
}

/* Card Heading: "Register" */
.form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 22px 0;
  text-align: left;
}

/* --- 2. Form Grid & Fields --- */
.nutanix-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1f2937;
  letter-spacing: normal;
  text-align: left;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 2px;
  font-weight: bold;
}

/* Inputs & Select Elements */
.form-input,
.form-select {
  width: 100%;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #4b5563;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
  border-color: #7855fa;
  box-shadow: 0 0 0 3px rgba(120, 85, 250, 0.18);
}

.form-input::placeholder {
  color: #9ca3af;
  font-size: 0.88rem;
}

/* Select Element Styling */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23374151' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* --- 3. Disclaimer Paragraph (Exact text from screenshot) --- */
.form-disclaimer-text {
  font-size: 0.72rem;
  color: #374151;
  line-height: 1.45;
  margin: 6px 0 18px 0;
  text-align: left;
}

.form-disclaimer-text a {
  color: #111827;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.15s ease;
}

.form-disclaimer-text a:hover {
  color: #7855fa;
}

/* --- 4. Submit Button (Vibrant Purple Pill) --- */
.form-submit-btn {
  width: 100%;
  background-color: #7855fa;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 24px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(120, 85, 250, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.form-submit-btn:hover {
  background-color: #6742eb;
  box-shadow: 0 6px 18px rgba(120, 85, 250, 0.45);
  transform: translateY(-1px);
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* --- 5. Submission Success State --- */
.form-success {
  display: none !important;
}

.btn-strategy-download,
.open-modal-trigger,
.btn-assessment {
  cursor: pointer;
}

/* ==========================================================================
   6. POPUP MODAL COMPONENT (Matching Purple Pill Style)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-top: 4px solid #7855fa;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 490px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header-bar h4 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.modal-body {
  padding: 20px 28px 28px;
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .hero-form-card {
    max-width: 100%;
    padding: 24px 20px;
  }

  .modal-container {
    max-width: 95%;
  }

  .modal-header-bar {
    padding: 16px 20px 10px;
  }

  .modal-body {
    padding: 16px 20px 24px;
  }
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-title {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .form-submit-btn {
    font-size: 1rem;
    padding: 12px 20px;
  }
}
