/* Cookie Banner Styles for NM Financial */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
  border-top: 3px solid #3498db;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h4 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #3498db;
  font-weight: 600;
}

.cookie-text p {
  margin: 0 0 15px 0;
  line-height: 1.5;
  font-size: 0.95em;
  opacity: 0.9;
}

.cookie-preferences {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-preferences.show {
  display: block;
}

.cookie-option {
  display: block;
  margin-bottom: 12px;
  padding: 8px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-option input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.1);
}

.cookie-option span {
  font-weight: 500;
  color: #ecf0f1;
  display: block;
  margin-bottom: 2px;
}

.cookie-option small {
  color: #bdc3c7;
  font-size: 0.85em;
  display: block;
  margin-left: 22px;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9em;
  text-align: center;
}

.cookie-buttons .btn-primary {
  background: #3498db;
  color: white;
}

.cookie-buttons .btn-primary:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.cookie-buttons .btn-secondary {
  background: #95a5a6;
  color: white;
}

.cookie-buttons .btn-secondary:hover {
  background: #7f8c8d;
  transform: translateY(-1px);
}

.cookie-buttons .btn-outline-secondary {
  background: transparent;
  color: #ecf0f1;
  border: 2px solid #95a5a6;
}

.cookie-buttons .btn-outline-secondary:hover {
  background: #95a5a6;
  color: white;
  transform: translateY(-1px);
}

.cookie-buttons .btn-link {
  background: transparent;
  color: #3498db;
  text-decoration: underline;
  padding: 5px 0;
}

.cookie-buttons .btn-link:hover {
  color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 15px;
  }

  .cookie-content {
    flex-direction: column;
    gap: 15px;
  }

  .cookie-text {
    min-width: auto;
  }

  .cookie-buttons {
    min-width: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cookie-buttons .btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.85em;
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 12px;
  }

  .cookie-text h4 {
    font-size: 1.1em;
  }

  .cookie-text p {
    font-size: 0.9em;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons .btn {
    min-width: auto;
  }
}

/* Animation for banner appearance */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner {
  animation: slideUp 0.5s ease-out;
}

/* Cookie settings modal styles (if needed for future enhancement) */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-settings-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  color: #2c3e50;
}

.cookie-settings-content h3 {
  color: #3498db;
  margin-bottom: 20px;
}

.cookie-settings-content .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #7f8c8d;
}

.cookie-settings-content .close-btn:hover {
  color: #e74c3c;
}
