/* Modern Login Page CSS */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --border-radius: 0.375rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--gray-100);
  color: var(--gray-700);
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

/* Main Container */
.login-container {
  display: flex;
  height: 100vh;
  width: 100%;
  margin: 0 auto;
}

/* Video Side */
.video-side {
  flex: 1.6;
  position: relative;
  background-color: var(--gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem 1rem;
  min-height: 700px; /* Ensure minimum height matches the form side */
}

.video-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 50%);
  z-index: 2;
}

.video-wrapper {
  width: 95%;
  aspect-ratio: 16 / 9;
  max-height: 70%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 3;
}

#promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text overlay styling */
.text-overlay {
  width: 95%;
  margin: 15px auto 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 10;
}

.typing-text {
  color: var(--gray-600);
  padding: 10px 5px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Blinking cursor effect */
.typing-text::after {
  content: '|';
  display: inline-block;
  animation: blink 1.2s ease-in-out infinite;
  margin-left: 4px;
  color: var(--primary-color);
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Responsive adjustments for the text overlay */
@media (max-width: 768px) {
  .text-overlay {
    margin-top: 12px;
    width: 90%;
  }
  
  .typing-text {
    font-size: 18px;
    min-height: 25px;
  }
}

@media (max-width: 480px) {
  .login-container {
    flex-direction: column;
  }
  
  .video-side {
    position: relative;
    height: auto;
    min-height: 20vh;
    max-height: 25vh;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    justify-content: center;
  }
  
  .video-wrapper {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  #promo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .text-overlay {
    display: none;
  }
  
  .full-video-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 20;
    background-color: rgba(0,0,0,0.3);
    padding: 5px;
    border-radius: 50px;
  }
  
  .watch-video-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--gray-700);
    padding: 8px 12px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .form-side {
    height: auto;
    min-height: 75vh;
    padding: 1.25rem 1.25rem 2rem;
    position: relative;
  }
  
  .login-card {
    box-shadow: none;
    padding: 0;
  }
  
  .footer {
    position: relative;
    bottom: auto;
    width: 100%;
    padding: 1rem 0 0;
    margin-top: 1rem;
    text-align: center;
  }
  
  .footer-text {
    font-size: 11px;
  }
  
  /* Reorder elements */
  .login-heading {
    margin-top: 0;
  }
}

/* iPhone SE and smaller devices */
@media (max-width: 380px) {
  .video-side {
    min-height: 18vh;
    max-height: 22vh;
  }
  
  .form-side {
    padding: 1rem 1rem 1.5rem;
  }
  
  .login-heading {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }
  
  .login-subheading {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }
  
  .watch-video-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .footer-text {
    font-size: 10px;
  }
}

/* Form Side */
.form-side {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--light-color);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 5;
  min-height: 700px; /* Match height with video side */
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.login-heading {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.375rem;
}

.login-subheading {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.input-field {
  width: 100%;
  height: 2.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  background-color: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-field:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.input-field::placeholder {
  color: var(--gray-400);
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--gray-500);
}

.input-with-icon .input-field {
  padding-left: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.toggle-password img {
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.toggle-password:hover img {
  opacity: 0.8;
}

.login-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.25rem;
  cursor: pointer;
}

.remember-me label {
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.forgot-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.login-button {
  height: 2.75rem;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-top: 1.25rem;
}

.login-button:hover {
  background-color: var(--primary-hover);
}

.form-messages {
  margin-top: 0.75rem;
}

.w-form-done, .w-form-fail {
  display: none;
  padding: 0.75rem;
  margin-top: 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.w-form-done {
  background-color: #ecfdf5;
  color: #065f46;
}

.w-form-fail {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 10vh auto;
  width: 90%;
  max-width: 450px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.modal.show {
  display: block;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
}

.close-button {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.close-button:hover {
  color: var(--dark-color);
}

.modal-description {
  padding: 1rem 1.5rem 0;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.modal-body {
  padding: 1.5rem;
}

.action-button {
  width: 100%;
  height: 2.75rem;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
  margin-top: 1.5rem;
}

.action-button:hover {
  background-color: var(--primary-hover);
}

.action-button[disabled] {
  background-color: var(--gray-300);
  cursor: not-allowed;
}

.email-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* OTP styles */
.otp-input {
  display: none;
  text-align: center;
  letter-spacing: 0.25rem;
  font-size: 1.25rem;
}

#verify-icon {
  vertical-align: middle;
  margin-left: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.timer-text {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
  }
  
  .video-side {
    flex: none;
    height: 45vh;
    padding: 1.5rem 1.5rem 1.5rem;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }
  
  .video-wrapper {
    width: 90%;
    aspect-ratio: 16 / 9;
    max-height: 70%;
    margin: 0 auto;
  }
  
  .text-overlay {
    margin: 10px auto 0;
  }
  
  .footer {
    position: absolute;
    bottom: 5px;
    width: 100%;
    padding: 5px 0;
  }
  
  .form-side {
    flex: none;
    height: 55vh;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .full-video-link {
    margin: 10px auto 0;
  }
}

/* Tablet and large phones */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-card {
    padding: 1.5rem;
  }
  
  .typing-text {
    font-size: 16px;
  }
  
  .video-modal-content {
    width: 95%;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .video-side {
    height: 40vh;
    padding: 1rem 1rem 1.5rem;
  }
  
  .video-wrapper {
    width: 95%;
    max-height: 65%;
  }
  
  .text-overlay {
    margin: 8px auto 0;
    width: 95%;
  }
  
  .typing-text {
    font-size: 14px;
    min-height: 25px;
    padding: 5px;
  }
  
  .footer {
    bottom: 3px;
    padding: 3px 0;
  }
  
  .footer-text {
    font-size: 11px;
  }
  
  .full-video-link {
    margin: 8px auto 0;
  }
  
  .watch-video-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .play-icon {
    width: 12px;
    height: 12px;
    margin-right: 6px;
  }
  
  .login-card {
    padding: 1.25rem;
    margin: 0 auto;
  }
  
  .login-heading {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }
  
  .login-subheading {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .input-group {
    margin-bottom: 0.5rem;
  }
  
  .login-button {
    margin-top: 1rem;
  }
}

/* Extra small phones */
@media (max-width: 380px) {
  .video-side {
    height: 38vh;
  }
  
  .form-side {
    height: 62vh;
    padding: 0.75rem;
  }
  
  .login-card {
    padding: 1rem;
  }
  
  .input-field {
    height: 2.5rem;
  }
  
  .login-button {
    height: 2.5rem;
  }
  
  .watch-video-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .play-icon {
    width: 10px;
    height: 10px;
    margin-right: 5px;
  }
  
  .video-modal-close {
    top: 5px;
    right: 10px;
    font-size: 24px;
  }
}

/* Footer Styles */
.footer {
  position: absolute;
  bottom: 15px;
  width: 95%;
  padding: 5px 0;
  text-align: center;
  z-index: 50;
}

.footer-text {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0;
  position: relative;
  z-index: 55;
}

.footer-link {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
  z-index: 60;
  display: inline-block;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--gray-700);
  text-decoration: none;
}

/* Responsive adjustments for footer */
@media (max-width: 480px) {
  .footer {
    padding: 6px 10px;
  }
  
  .footer-text {
    font-size: 11px;
  }
}

/* Full video link styles */
.full-video-link {
  margin: 15px auto 0;
  width: 95%;
  text-align: center;
  z-index: 15;
  position: relative;
}

/* Button styling for better mobile tap targets */
.watch-video-btn {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--gray-700);
  border: none;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  -webkit-tap-highlight-color: transparent;
}

.watch-video-btn:hover {
  background-color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.watch-video-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.play-icon {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  opacity: 0.7;
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.video-modal.show {
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background-color: black;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.video-modal-close:hover {
  opacity: 1;
}

.full-video-player {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}

/* Responsive styles for video modal */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .watch-video-btn {
    padding: 10px 16px; /* Larger touch target */
  }
  
  .video-modal-close {
    font-size: 36px; /* Larger close button for touch */
    padding: 10px;
    top: 5px;
    right: 5px;
  }
  
  .full-video-player {
    width: 100%;
    max-height: 90vh;
  }
}

/* Portrait orientation for phones */
@media (max-width: 480px) and (orientation: portrait) {
  .login-container {
    flex-direction: column;
  }
  
  .video-side {
    height: 30vh;
    padding: 1rem 1rem 0.5rem;
    justify-content: flex-start;
  }
  
  .form-side {
    height: 70vh;
    padding: 1rem 1rem 1.5rem;
  }
  
  .video-wrapper {
    width: 95%;
    max-height: 80%;
    margin-top: 1.5rem;
  }
  
  #promo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .text-overlay {
    display: none;
  }
  
  .full-video-link {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 20;
  }
  
  .watch-video-btn {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
  }
  
  .footer {
    position: absolute;
    bottom: 5px;
    width: 100%;
  }
  
  .login-card {
    padding: 1.25rem;
  }
}

/* iPhone SE and smaller devices */
@media (max-width: 380px) and (max-height: 670px) {
  .video-side {
    height: 25vh;
    padding: 0.5rem 0.5rem 0.5rem;
  }
  
  .form-side {
    height: 75vh;
    padding: 0.5rem 0.75rem 1rem;
  }
  
  .login-card {
    padding: 1rem 0.75rem;
  }
  
  .video-wrapper {
    width: 98%;
    max-height: 75%;
    margin-top: 0.5rem;
  }
  
  .full-video-link {
    bottom: 25px;
  }
  
  .watch-video-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .footer {
    bottom: 2px;
    padding: 2px 0;
  }
  
  .footer-text {
    font-size: 10px;
  }
  
  .login-heading {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
  }
  
  .login-subheading {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .input-group {
    margin-bottom: 0.5rem;
  }
  
  .input-field {
    height: 2.5rem;
  }
}

/* Landscape orientation for phones */
@media (max-height: 480px) and (orientation: landscape) {
  .login-container {
    flex-direction: row;
  }
  
  .video-side {
    flex: 1;
    height: 100vh;
    padding: 0.75rem;
  }
  
  .form-side {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
  }
  
  .video-wrapper {
    width: 90%;
    max-height: 70%;
  }
  
  .text-overlay, .full-video-link {
    display: none;
  }
  
  .footer {
    bottom: 2px;
    padding: 2px 0;
  }
  
  .login-card {
    padding: 1rem;
    max-height: 95vh;
    overflow-y: auto;
  }
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  body {
    overflow: auto;
    background-color: white;
    padding-bottom: 50px; /* Space for footer */
  }
  
  .login-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .video-side {
    display: none;
  }
  
  .form-side {
    flex: 1;
    height: auto;
    min-height: 100vh;
    background-color: white;
    position: relative;
    padding: 1.5rem;
    box-shadow: none;
  }
  
  .login-card {
    position: relative;
    background-color: white;
    box-shadow: none;
    max-width: 100%;
    padding: 0;
    margin-top: 1rem;
  }
  
  .login-heading {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .login-subheading {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .input-field {
    background-color: var(--gray-100);
  }
  
  .input-with-icon .input-field {
    background-color: var(--gray-100);
  }
  
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    padding: 8px 0;
    background-color: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .footer-text {
    font-size: 12px;
    color: var(--gray-600);
  }
  
  .footer-link {
    font-weight: 600;
  }
  
  /* Mobile video button - visible on mobile */
  .mobile-video-button {
    display: flex;
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 100;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    animation: pulse 2s infinite;
  }
  
  .mobile-video-icon {
    width: 24px;
    height: 24px;
    fill: white;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
  }
}

/* Mobile button - hidden by default on desktop */
.mobile-video-button {
  display: none;
  outline: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 50px; /* Space for footer */
  }
  
  .mobile-video-button {
    display: flex !important; /* Force display */
    -webkit-tap-highlight-color: transparent;
  }
}

/* Video loading spinner */
.video-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  animation: spinner 1s linear infinite;
}

@keyframes spinner {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video loading message */
.video-loading-message {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 14px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 12;
}

/* Contact details styling - adjust spacing */
.contact-details {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Reduce gap between items */
  text-align: center;
  margin-top: auto; /* Push to bottom of flex container */
  padding-top: 1rem;
}

.contact-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem; /* Reduce margin */
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: transform 0.15s ease;
}

.contact-item:hover {
  transform: translateY(-1px);
}

.contact-icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}

.contact-link {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Responsive styles for contact details */
@media (max-width: 767px) {
  .contact-details {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    gap: 0.75rem;
  }
  
  .contact-heading {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .contact-item {
    font-size: 0.8rem;
  }
  
  .contact-icon {
    width: 0.9rem;
    height: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-details {
    padding-bottom: 2.5rem; /* Add space for footer */
  }
}
