@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0F4C81;
  /* Classic Blue */
  --secondary: #e2e8f0;
  --accent: #FF6B6B;
  --bg-gradient-start: #f6f8fb;
  --bg-gradient-end: #e2eafc;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-light: #64748b;
  --border: #f1f5f9;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 40px rgba(15, 76, 129, 0.1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: transparent;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-section i {
  font-size: 1.5rem;
}

.exit-btn {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
  padding: 10px 20px;
  background: white;
  border-radius: 50px;
  box-shadow: var(--shadow-subtle);
}

.exit-btn:hover {
  color: var(--accent);
}

/* MAIN LAYOUT */
.split-layout {
  display: flex;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 3rem 2rem;
  gap: 3rem;
  align-items: flex-start;
}

/* LEFT HERO PANEL */
.info-panel {
  flex: 1;
  position: -webkit-sticky;
  position: sticky;
  top: 2rem;
  padding: 2rem 0;
  align-self: flex-start;
  height: max-content;
}

.info-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.info-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 90%;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-subtle);
  font-size: 1.2rem;
}

.cna-logo-large {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 2rem;
  border: 4px solid white;
}

/* RIGHT FORM PANEL */
.form-panel {
  flex: 1.2;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.form-group-modern {
  margin-bottom: 1.8rem;
}

.form-group-modern label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.required-star {
  color: var(--accent);
}

.form-control-modern {
  width: 100%;
  padding: 1rem 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.form-control-modern:focus {
  outline: none;
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

select.form-control-modern {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.error-message {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.4rem;
  display: none;
  animation: slideDown 0.3s ease;
}

.is-invalid {
  border-color: var(--accent) !important;
  background: #fff5f5 !important;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-row .form-group-modern {
  flex: 1;
}

/* BUTTONS */
.btn-epic {
  width: 100%;
  padding: 1.2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.2);
  margin-top: 2rem;
}

.btn-epic:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(15, 76, 129, 0.3);
  background: #0b3b66;
}

.security-badge {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* MODALS */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
}

.modal-header-success,
.modal-header-error {
  padding: 1.5rem 2rem;
  border: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header-success {
  background: #10b981;
  color: white;
}

.modal-header-error {
  background: var(--accent);
  color: white;
}

.success-icon-large,
.error-icon-large {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.success-icon-large {
  color: #10b981;
}

.error-icon-large {
  color: var(--accent);
}

/* LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.spinner-pulse {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .split-layout {
    flex-direction: column;
  }

  .info-panel {
    position: static;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    text-align: left;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}