*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0a2540;
  --navy2: #0f2f4a;
  --teal: #1e8f9c;
  --teal2: #15707b;
  --cream: #f6f8fa;
  --text: #1a2c3e;
  --muted: #5c6f87;
  --border: #e2e8f0;
  --white: #ffffff;
  --success: #1f7840;
  --successbg: #e9f7ef;
  --error: #c2412c;
  --errorbg: #fef3f2;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #eef2f6;
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 20px;
}

/* SPLIT LAYOUT - No gaps at top */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT PANEL */
.left-panel {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2e44 100%);
  color: var(--white);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: rgba(30, 143, 156, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

/* COMPANY LOGO STYLES */
.company-logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.company-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  padding: 5px;
}

.logo-text-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  font-family: "Merriweather", serif;
}

.left-panel h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.left-panel h1 em {
  font-style: italic;
  color: #7bcbd4;
  font-weight: 500;
}

.left-panel > p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
}

.benefits {
  list-style: none;
  margin-bottom: 2rem;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 450;
}

.benefits li:last-child {
  border-bottom: none;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  background: rgba(123, 203, 212, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon i {
  color: #7bcbd4;
  font-size: 14px;
}

.benefits li span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  backdrop-filter: blur(2px);
}

.testimonial strong {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-weight: 600;
  color: #a1dfe6;
  font-size: 0.8rem;
}

/* RIGHT PANEL */
.right-panel {
  background: var(--white);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.02);
}

.form-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}

.form-header h2 {
  font-family: "Merriweather", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.2px;
  margin-bottom: 0.25rem;
}

.form-header p {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 450;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.field-wrap {
  position: relative;
}

.field-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8e9eae;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 450;
  background: var(--white);
  transition: all 0.2s;
  color: var(--text);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 143, 156, 0.15);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235c6f87' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 1.2rem 0 1.6rem;
}

.terms-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal2);
  flex-shrink: 0;
}

.terms-row label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 450;
}

.terms-row a {
  color: var(--teal2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted transparent;
  transition: 0.15s;
}

.terms-row a:hover {
  border-bottom-color: var(--teal2);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-submit:hover {
  background: var(--navy2);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10, 37, 64, 0.15);
}

.feedback {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  display: none;
}

.feedback.success {
  background: var(--successbg);
  color: var(--success);
  border-left: 3px solid var(--success);
}

.feedback.error {
  background: var(--errorbg);
  color: var(--error);
  border-left: 3px solid var(--error);
}

.shake {
  animation: shake 0.32s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(2px);
  }
}

/* PLACEMENT SECTION */
.placement-section {
  background: #f1f4f8;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.section-label {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label h2 {
  font-family: "Merriweather", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.section-label p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 450;
}

.slider-wrap {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.slider-wrap::-webkit-scrollbar {
  height: 5px;
}

.slider-wrap::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 20px;
}

.p-card {
  flex: 0 0 170px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid var(--border);
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.1);
}

.p-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.p-card-info {
  padding: 12px 12px 14px;
}

.p-card-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}

.p-card-role {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 450;
}

footer a {
  color: #7bcbd4;
  text-decoration: none;
  font-weight: 500;
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--navy);
  transform: translateY(-2px);
}

/* MODAL */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(3px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
  font-family: "Merriweather", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.modal-box p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.modal-close {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

/* ============================================ */
/* RESPONSIVE DESIGN - FIXED FOR MOBILE */
/* ============================================ */

/* Tablet and Mobile Landscape */
@media (max-width: 992px) {
  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .left-panel {
    padding: 2rem;
    min-height: auto;
  }

  .right-panel {
    padding: 2rem;
  }

  .benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
  }

  .benefits li {
    padding: 0.5rem 0;
  }
}

/* Mobile Portrait */
@media (max-width: 768px) {
  .left-panel {
    padding: 1.5rem;
    text-align: left;
    align-items: flex-start;
  }

  .left-panel h1 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .left-panel > p {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .company-logo-container {
    justify-content: flex-start;
    margin-bottom: 1rem;
  }

  .company-logo {
    width: 45px;
    height: 45px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.5rem;
  }

  .benefits li {
    gap: 12px;
    padding: 0.5rem 0;
  }

  .benefit-icon {
    width: 28px;
    height: 28px;
  }

  .benefit-icon i {
    font-size: 12px;
  }

  .benefits li strong {
    font-size: 0.85rem;
  }

  .benefits li span {
    font-size: 0.75rem;
  }

  .testimonial {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }

  .testimonial strong {
    font-size: 0.75rem;
  }

  /* Right Panel Mobile */
  .right-panel {
    padding: 1.5rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .form-header p {
    font-size: 0.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.7rem;
  }

  input,
  select,
  textarea {
    padding: 0.65rem 0.8rem 0.65rem 2.2rem;
    font-size: 0.85rem;
  }

  .field-wrap i {
    font-size: 12px;
    left: 12px;
  }

  .terms-row {
    margin: 1rem 0 1.2rem;
  }

  .terms-row label {
    font-size: 0.75rem;
  }

  .btn-submit {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  /* Placement Section Mobile */
  .placement-section {
    padding: 2rem 1rem;
  }

  .section-label h2 {
    font-size: 1.5rem;
  }

  .section-label p {
    font-size: 0.8rem;
  }

  .p-card {
    flex: 0 0 140px;
  }

  .p-card img {
    height: 140px;
  }

  .p-card-info {
    padding: 8px;
  }

  .p-card-name {
    font-size: 0.75rem;
  }

  .p-card-role {
    font-size: 0.65rem;
  }

  /* Slider gap adjustment */
  .slider-wrap {
    gap: 0.8rem;
  }

  /* Footer Mobile */
  footer {
    padding: 1.5rem;
    font-size: 0.7rem;
  }

  footer p {
    margin-bottom: 0.5rem;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
  }

  .footer-social i {
    font-size: 14px;
  }

  /* Modal Mobile */
  .modal-box {
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-box h3 {
    font-size: 1.3rem;
  }

  .modal-box p {
    font-size: 0.8rem;
  }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
  .left-panel {
    padding: 1.25rem;
  }

  .left-panel h1 {
    font-size: 1.5rem;
  }

  .left-panel > p {
    font-size: 0.8rem;
  }

  .right-panel {
    padding: 1.25rem;
  }

  .form-header h2 {
    font-size: 1.3rem;
  }

  .p-card {
    flex: 0 0 130px;
  }

  .p-card img {
    height: 130px;
  }

  .slider-wrap {
    gap: 0.6rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .company-logo {
    width: 38px;
    height: 38px;
  }
}

/* Fix for very small devices */
@media (max-width: 360px) {
  .p-card {
    flex: 0 0 120px;
  }

  .p-card img {
    height: 120px;
  }

  .left-panel h1 {
    font-size: 1.3rem;
  }
}
