/* index_responsive.css - Responsive styles for the Policy Forum on Development mapping platform */

/* Base mobile-first approach */
@media screen and (max-width: 1200px) {
  .right-panel-content {
    min-width: 400px;
  }
}

/* Large screens to medium screens */
@media screen and (max-width: 992px) {
  .container {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    min-height: 40vh;
    padding: 20px;
  }

  .right-panel {
    width: 100%;
  }

  .right-panel-content {
    max-width: 80%;
    min-width: 300px;
    margin: 0 auto;
    padding: 30px 20px;
  }

  .main-title {
    font-size: 2rem;
    padding: 0 10%;
    margin-bottom: 20px;
  }

  .world-map {
    width: 80%;
    margin-top: 20px;
  }

  .header-logos {
    min-width: 280px;
    margin-bottom: 20px;
  }

  .pfd-logo {
    width: 150px;
  }

  .ec-logo {
    width: 100px;
  }
}

/* Medium screens to small screens */
@media screen and (max-width: 768px) {
  .left-panel {
    min-height: 35vh;
  }

  .right-panel-content {
    max-width: 90%;
    padding: 20px 15px;
  }

  .main-title {
    font-size: 1.8rem;
    padding: 0 5%;
  }

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

  .auth-header {
    font-size: 1.5rem;
  }

  .auth-text {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 15px;
  }
}

/* Small screens and mobile devices */
@media screen and (max-width: 576px) {
  .left-panel {
    min-height: 30vh;
    padding: 15px;
  }

  .right-panel-content {
    max-width: 100%;
    min-width: auto;
    padding: 20px 10px;
  }

  .main-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding: 0;
  }

  .world-map {
    width: 90%;
    margin-top: 10px;
  }

  .header-logos {
    min-width: 220px;
    margin-bottom: 15px;
  }

  .pfd-logo {
    width: 120px;
  }

  .ec-logo {
    width: 80px;
  }

  .auth-tabs {
    width: 100%;
  }

  .form-group {
    margin-bottom: 1rem !important;
  }

  .form-control {
    padding: 0.6rem;
  }

  .auth-header {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .auth-text {
    margin-bottom: 1rem;
  }

  .footer {
    margin-top: 30px;
    font-size: 0.8rem;
    flex-direction: column;
  }
}

/* Very small mobile devices */
@media screen and (max-width: 375px) {
  .left-panel {
    min-height: 25vh;
  }

  .main-title {
    font-size: 1.3rem;
  }

  .header-logos {
    min-width: 200px;
  }

  .pfd-logo {
    width: 100px;
  }

  .ec-logo {
    width: 70px;
  }

  .auth-tabs {
    border-radius: 10px;
  }

  .auth-tab {
    padding: 0.7rem;
  }

  .btn {
    /* min-width: 100%; */
  }
}

/* Landscape orientation on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .container {
    flex-direction: row;
  }

  .left-panel {
    width: 40%;
    min-height: 100vh;
  }

  .right-panel {
    width: 60%;
  }

  .main-title {
    font-size: 1.3rem;
    padding: 0 5%;
  }

  .world-map {
    width: 80%;
    margin-top: 10px;
  }

  .right-panel-content {
    padding: 15px;
  }

  .form-group {
    margin-bottom: 0.8rem !important;
  }
}

/* High-density (Retina) displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .pfd-logo,
  .ec-logo,
  .world-map {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Fix for iOS Safari input fields */
@supports (-webkit-touch-callout: none) {

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .form-control {
    -webkit-appearance: none;
    border-radius: 4px;
  }
}


/* Animation for particles on smaller screens */
@media screen and (max-width: 768px) {
  canvas {
    opacity: 0.5;
  }
}

/* Better focus states for accessibility */
@media (hover: hover) {
  .form-control:focus {
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3);
    border-color: #e67e22;
    outline: none;
  }

  .btn:focus {
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.3);
    outline: none;
  }
}

/* Print styles */
@media print {
  .container {
    display: block;
  }

  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
    padding: 0;
  }

  .auth-tabs,
  .btn {
    display: none;
  }
}


/* Responsive styles for form navigation */

/* Medium screens */
@media screen and (max-width: 992px) {
  

  .header-logos img.pfd-logo {
    width: 162px !important;
  }

  .header-logos img.ec-logo {
    width: 100px !important;
  }

  form#survey-form {
    padding-bottom: 100px !important;
  }

  .partners{
    margin-left: 0 !important;
  }

  .auth-tabs {
    margin-top: 50px;
  }

}