/* ==========================================================================
   EVE (حواء) - CAPTAIN DRIVER APPLICATION PORTAL CSS
   Luxury Dark & Neon Cyan Edition | Masar Al-Harakah Mobility Co.
   Baghdad, Iraq | Official Women Transport Network
   ========================================================================== */

:root {
  --bg-deep: #050a12;
  --bg-card: rgba(11, 20, 34, 0.88);
  --bg-card-hover: rgba(16, 28, 48, 0.95);
  --bg-input: rgba(6, 12, 22, 0.75);
  
  --cyan-neon: #22d3ee;
  --cyan-bright: #00f2fe;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --cyan-border: rgba(34, 211, 238, 0.28);
  --cyan-border-active: rgba(34, 211, 238, 0.65);
  
  --gold-accent: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.14);
  --gold-border: rgba(245, 158, 11, 0.45);
  
  --emerald-accent: #10b981;
  --rose-accent: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 25px rgba(34, 211, 238, 0.25);
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Glowing Ambient Orbs */
.portal-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.portal-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.portal-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
}

.portal-container {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* Header & Top Bar */
.portal-header {
  background: rgba(6, 11, 19, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.portal-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--cyan-border);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}
.brand-text-box {
  display: flex;
  flex-direction: column;
}
.brand-main-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}
.brand-name span.eve-tag {
  color: var(--cyan-neon);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}
.brand-company-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan-neon);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
}
.brand-company-pill::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-bright);
}
.brand-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan-neon);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--cyan-border);
  transition: var(--transition);
}
.btn-back-home:hover {
  background: var(--cyan-neon);
  color: #04080f;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
  transform: translateX(-3px);
}

/* Hero Section */
.portal-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}
.portal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-neon);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}
.portal-main-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 20%, var(--cyan-neon) 75%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portal-hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Benefits Grid */
.portal-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.benefit-card-mini {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}
.benefit-card-mini:hover {
  border-color: var(--cyan-neon);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.benefit-card-mini i {
  font-size: 1.6rem;
  color: var(--cyan-neon);
  margin-bottom: 0.5rem;
  display: block;
}
.benefit-card-mini.gold-accent i {
  color: var(--gold-accent);
}
.benefit-card-mini h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.benefit-card-mini p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Main Form Card */
.portal-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid var(--cyan-border);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

/* Section Dividers inside form */
.form-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.form-section-header:first-of-type {
  margin-top: 0;
}
.section-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-border);
  color: var(--cyan-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.section-icon-wrap.gold {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-accent);
}
.form-section-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.form-section-header span {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-right: auto;
}

/* Form Layout Grid */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: right;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.form-label .required-star {
  color: var(--rose-accent);
  font-size: 1.1rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan-neon);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.35);
  background: rgba(9, 18, 32, 0.9);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}
.form-select option {
  background: #09121f;
  color: #fff;
}

/* Radio Pill Group */
.radio-pill-group {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.radio-pill-item {
  flex: 1;
  min-width: 100px;
}
.radio-pill-item input[type="radio"] {
  display: none;
}
.radio-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.radio-pill-item input[type="radio"]:checked + .radio-pill-label {
  background: var(--cyan-soft);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

/* DYNAMIC VEHICLE CHECKBOX TOGGLE CARD */
.own-car-toggle-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.own-car-toggle-card:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
  border-color: var(--gold-accent);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}
.toggle-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.toggle-content-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.toggle-icon-gold {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px solid var(--gold-accent);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.toggle-text-wrap h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}
.toggle-text-wrap p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Custom Checkbox Switch */
.custom-checkbox-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
}
.custom-checkbox-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px;
  transition: .3s;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
}
.custom-checkbox-switch input:checked + .switch-slider {
  background-color: var(--gold-accent);
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}
.custom-checkbox-switch input:checked + .switch-slider:before {
  transform: translateX(24px);
  background-color: #0b0f19;
}

/* Expandable Vehicle Details Drawer */
.vehicle-details-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  margin-top: 0;
  padding: 0 1.5rem;
}
.vehicle-details-drawer.expanded {
  max-height: 700px;
  opacity: 1;
  margin-top: 1.5rem;
  padding: 1.8rem 1.6rem;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Submit Actions */
.submit-terms-box {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.submit-terms-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan-neon);
  margin-top: 0.2rem;
  cursor: pointer;
}
.btn-submit-portal {
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, var(--cyan-neon), #0ea5e9);
  border: none;
  border-radius: var(--radius-md);
  color: #04080f;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(34, 211, 238, 0.4);
}
.btn-submit-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(34, 211, 238, 0.6);
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-neon));
}
.btn-submit-portal:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Footer in Portal */
.portal-footer {
  text-align: center;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
}
.portal-footer a {
  color: var(--cyan-neon);
  text-decoration: none;
}
.portal-footer a:hover {
  text-decoration: underline;
}

/* Success Modal */
.portal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.portal-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.portal-modal-card {
  width: 100%;
  max-width: 560px;
  background: #091322;
  border: 1.5px solid var(--cyan-neon);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.portal-modal-overlay.open .portal-modal-card {
  transform: translateY(0);
}
.modal-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--emerald-accent);
  color: var(--emerald-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}
.app-code-box {
  background: rgba(34, 211, 238, 0.08);
  border: 1.5px dashed var(--cyan-neon);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
}
.app-code-box small {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}
.app-code-box strong {
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  color: var(--cyan-neon);
  display: block;
  margin-top: 0.2rem;
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .portal-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .portal-form-card {
    padding: 1.8rem 1.25rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .portal-benefits-grid {
    grid-template-columns: 1fr;
  }
  .portal-main-title {
    font-size: 1.85rem;
  }
  .toggle-checkbox-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .custom-checkbox-switch {
    align-self: flex-end;
  }
}
